[Libreoffice-commits] core.git: drawinglayer/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Wed Jun 3 20:39:09 UTC 2020
drawinglayer/source/tools/emfphelperdata.cxx | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
New commits:
commit 6d1b19df4e9cd066acf57b57c3a8b68e09a43ff0
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Wed Jun 3 09:21:20 2020 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Jun 3 22:38:24 2020 +0200
Upcoming loplugin:elidestringvar: drawinglayer
Change-Id: Ic4f4a2d2d6d04b317a00c3c1b7eb005229c81bd5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95398
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
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
More information about the Libreoffice-commits
mailing list