vcl/source/gdi/salgdilayout.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 127a7b263c4a45c1570f21080022f79099c5c3e6
Author:     Michael Meeks <michael.me...@collabora.com>
AuthorDate: Tue May 23 18:19:18 2023 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Wed May 24 20:38:54 2023 +0200

    perf: surprising to see getenv on a profile.
    
    Change-Id: Id97c77d4c836e4f3c5a9eff6da07eb52d29248c6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152167
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

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)
     {

Reply via email to