[Libreoffice-commits] core.git: vcl/osx
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Mon Dec 7 19:51:37 UTC 2020
vcl/osx/printaccessoryview.mm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 678c4fa103709588154371a35b74ebedbcef95f6
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Mon Dec 7 17:54:00 2020 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Dec 7 20:51:01 2020 +0100
loplugin:stringviewparam (macOS)
Change-Id: I75344c7eda051838c015f0c4126788fd3628682f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107356
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/vcl/osx/printaccessoryview.mm b/vcl/osx/printaccessoryview.mm
index 92ccbf686fe8..7656c1b9df06 100644
--- a/vcl/osx/printaccessoryview.mm
+++ b/vcl/osx/printaccessoryview.mm
@@ -41,6 +41,7 @@
#include <com/sun/star/i18n/WordType.hpp>
#include <map>
+#include <string_view>
#include <utility>
using namespace vcl;
@@ -845,7 +846,7 @@ static void addList( NSView* pCurParent, CGFloat& rCurX, CGFloat& rCurY, CGFloat
}
static void addEdit( NSView* pCurParent, CGFloat rCurX, CGFloat& rCurY, CGFloat nAttachOffset,
- const OUString& rCtrlType,
+ std::u16string_view rCtrlType,
const OUString& rText,
const OUString& rProperty, const PropertyValue* pValue,
sal_Int64 nMinValue, sal_Int64 nMaxValue,
@@ -898,7 +899,7 @@ static void addEdit( NSView* pCurParent, CGFloat rCurX, CGFloat& rCurY, CGFloat
aFieldRect.origin.y = rCurY - aFieldRect.size.height;
[pFieldView setFrame: aFieldRect];
- if( rCtrlType == "Range" )
+ if( rCtrlType == u"Range" )
{
// add a stepper control
NSRect aStepFrame = { { aFieldRect.origin.x + aFieldRect.size.width + 5,
More information about the Libreoffice-commits
mailing list