diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-06-03 09:21:20 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-06-03 22:38:24 +0200 |
commit | 6d1b19df4e9cd066acf57b57c3a8b68e09a43ff0 (patch) | |
tree | fce9a80fe30b2e9b3b47c6a78230a2e05e64910e /drawinglayer | |
parent | 8ddc22c45c1a338d6de0b9f8cb26c39dc4065dbc (diff) |
Upcoming loplugin:elidestringvar: drawinglayer
Change-Id: Ic4f4a2d2d6d04b317a00c3c1b7eb005229c81bd5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95398
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/tools/emfphelperdata.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drawinglayer/source/tools/emfphelperdata.cxx b/drawinglayer/source/tools/emfphelperdata.cxx index c66c0728d808..cc0770c9a8fb 100644 --- a/drawinglayer/source/tools/emfphelperdata.cxx +++ b/drawinglayer/source/tools/emfphelperdata.cxx @@ -1566,10 +1566,9 @@ namespace emfplushelper } mrPropertyHolders.Current().setFont(vcl::Font(font->family, Size(font->emSize, font->emSize))); - const OUString emptyString; drawinglayer::attribute::FontAttribute fontAttribute( font->family, // font family - emptyString, // (no) font style + "", // (no) font style font->Bold() ? 8u : 1u, // weight: 8 = bold font->family == "SYMBOL", // symbol stringFormat && stringFormat->DirectionVertical(), // vertical @@ -2088,10 +2087,9 @@ namespace emfplushelper } // done reading - const OUString emptyString; drawinglayer::attribute::FontAttribute fontAttribute( font->family, // font family - emptyString, // (no) font style + "", // (no) font style font->Bold() ? 8u : 1u, // weight: 8 = bold font->family == "SYMBOL", // symbol optionFlags & 0x2, // vertical |