diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2018-02-12 11:14:09 +0100 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-02-12 14:02:44 +0100 |
commit | ad4b699980e0d02e535ec14fab3135453ab48d4e (patch) | |
tree | f9ba23b36ab400a4b442b7b8d432791682450ecb /vcl/source | |
parent | 2191169c83c15bfc9546204fc1640b1674717af1 (diff) |
One less ctor/dtor
Change-Id: I73cab951942f16b937e95a6617ed60ee24b6c3b3
Reviewed-on: https://gerrit.libreoffice.org/49583
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/control/ctrl.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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(); |