[Libreoffice-commits] core.git: vcl/source

Mike Kaganski mike.kaganski at collabora.com
Mon Feb 12 13:03:06 UTC 2018


 vcl/source/control/ctrl.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit ad4b699980e0d02e535ec14fab3135453ab48d4e
Author: Mike Kaganski <mike.kaganski at collabora.com>
Date:   Mon Feb 12 11:14:09 2018 +0100

    One less ctor/dtor
    
    Change-Id: I73cab951942f16b937e95a6617ed60ee24b6c3b3
    Reviewed-on: https://gerrit.libreoffice.org/49583
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/vcl/source/control/ctrl.cxx b/vcl/source/control/ctrl.cxx
index 7cc4cff385bf..a1307ae5f045 100644
--- a/vcl/source/control/ctrl.cxx
+++ b/vcl/source/control/ctrl.cxx
@@ -404,8 +404,7 @@ void Control::ApplySettings(vcl::RenderContext& rRenderContext)
 {
     const StyleSettings& rStyleSettings = rRenderContext.GetSettings().GetStyleSettings();
 
-    vcl::Font rFont(GetCanonicalFont(rStyleSettings));
-    ApplyControlFont(rRenderContext, rFont);
+    ApplyControlFont(rRenderContext, GetCanonicalFont(rStyleSettings));
 
     ApplyControlForeground(rRenderContext, GetCanonicalTextColor(rStyleSettings));
     rRenderContext.SetTextFillColor();


More information about the Libreoffice-commits mailing list