summaryrefslogtreecommitdiff
path: root/vcl/osx/printaccessoryview.mm
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-12-07 17:54:00 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-12-07 20:51:01 +0100
commit678c4fa103709588154371a35b74ebedbcef95f6 (patch)
tree86d0696a0a8d831f30181fddcdb61b80f6feed69 /vcl/osx/printaccessoryview.mm
parentf603ae00471285bda6ebe23c89f0ac552846ac0d (diff)
loplugin:stringviewparam (macOS)
Change-Id: I75344c7eda051838c015f0c4126788fd3628682f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107356 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/osx/printaccessoryview.mm')
-rw-r--r--vcl/osx/printaccessoryview.mm5
1 files changed, 3 insertions, 2 deletions
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,