vcl/source/gdi/salgdilayout.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit b3768c69c20018febfe5161670fc44b19307bd0e Author: Michael Meeks <michael.me...@collabora.com> AuthorDate: Tue May 23 18:19:18 2023 +0100 Commit: Michael Meeks <michael.me...@collabora.com> CommitDate: Tue May 23 23:15:27 2023 +0200 perf: surprising to see getenv on a profile. Change-Id: Id97c77d4c836e4f3c5a9eff6da07eb52d29248c6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152105 Tested-by: Jenkins Reviewed-by: Michael Meeks <michael.me...@collabora.com> diff --git a/vcl/source/gdi/salgdilayout.cxx b/vcl/source/gdi/salgdilayout.cxx index 7b5c11022e03..5f7baf18d71d 100644 --- a/vcl/source/gdi/salgdilayout.cxx +++ b/vcl/source/gdi/salgdilayout.cxx @@ -62,7 +62,7 @@ SalGraphics::SalGraphics() bool SalGraphics::initWidgetDrawBackends(bool bForce) { - bool bFileDefinitionsWidgetDraw = !!getenv("VCL_DRAW_WIDGETS_FROM_FILE"); + static bool bFileDefinitionsWidgetDraw = !!getenv("VCL_DRAW_WIDGETS_FROM_FILE"); if (bFileDefinitionsWidgetDraw || bForce) {