diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2023-05-23 18:19:18 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-05-24 20:38:54 +0200 |
commit | 127a7b263c4a45c1570f21080022f79099c5c3e6 (patch) | |
tree | a5d8b3a24dc8ae4b5ca2d5a7bdd23975e18745a3 | |
parent | 6e0c522de3faf55f3a069b1648cc283a3813ff6d (diff) |
perf: surprising to see getenv on a profile.
Change-Id: Id97c77d4c836e4f3c5a9eff6da07eb52d29248c6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152167
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r-- | vcl/source/gdi/salgdilayout.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/salgdilayout.cxx b/vcl/source/gdi/salgdilayout.cxx index 91419779d871..a219ce89e5c6 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) { |