summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-12-20 09:47:06 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-12-20 13:07:02 +0100
commitcf7306194f5c677fef75e3ff5098676ee302359e (patch)
treea52a0980de72c7f70e4f3ae55126579655440773 /sfx2
parent24b02a4f2507f40fe9d36c393c59e12c072428c3 (diff)
No longer need to worry about ambiguous operator== in loplugin:stringviewparam
...after 46c5de832868d2812448b2caace3eeaa9237b9f6 "make *String(string_view) constructors explicit" Change-Id: I6e884c762a2fc91f5dd6fbb197a596fd60f17cae Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108043 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/tabdlg.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx
index 954db248f417..6f71e91fea88 100644
--- a/sfx2/source/dialog/tabdlg.cxx
+++ b/sfx2/source/dialog/tabdlg.cxx
@@ -20,6 +20,7 @@
#include <stdlib.h>
#include <algorithm>
+#include <string_view>
#include <sfx2/tabdlg.hxx>
#include <sfx2/app.hxx>
@@ -104,7 +105,7 @@ struct TabDlg_Impl
}
};
-static Data_Impl* Find( const SfxTabDlgData_Impl& rArr, const OString& rId, sal_uInt16* pPos = nullptr)
+static Data_Impl* Find( const SfxTabDlgData_Impl& rArr, std::string_view rId, sal_uInt16* pPos = nullptr)
{
const sal_uInt16 nCount = rArr.size();
@@ -1090,7 +1091,7 @@ void SfxTabDialogController::RemoveStandardButton()
m_xBaseFmtBtn->hide();
}
-SfxTabPage* SfxTabDialogController::GetTabPage(const OString& rPageId) const
+SfxTabPage* SfxTabDialogController::GetTabPage(std::string_view rPageId) const
/* [Description]