summaryrefslogtreecommitdiff
path: root/include/comphelper
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-04-27 16:47:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-04-28 13:40:36 +0200
commitb1148c31ed2786396f0b018a988fce8288f1797d (patch)
tree307439b6e5c6c15dc9a91fa0363247b23644d77f /include/comphelper
parentae761fd359f4a553e4552125f77575204d62c958 (diff)
use more string_view in comphelper
Change-Id: I1544da756d8da074787bc19a98d2740058e36479 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133520 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/comphelper')
-rw-r--r--include/comphelper/accessibletexthelper.hxx6
-rw-r--r--include/comphelper/docpasswordhelper.hxx2
-rw-r--r--include/comphelper/storagehelper.hxx2
-rw-r--r--include/comphelper/syntaxhighlight.hxx2
-rw-r--r--include/comphelper/xmlsechelper.hxx5
5 files changed, 9 insertions, 8 deletions
diff --git a/include/comphelper/accessibletexthelper.hxx b/include/comphelper/accessibletexthelper.hxx
index 2c1e464d7e2f..607004aee30f 100644
--- a/include/comphelper/accessibletexthelper.hxx
+++ b/include/comphelper/accessibletexthelper.hxx
@@ -55,7 +55,7 @@ namespace comphelper
static bool implIsValidIndex( sal_Int32 nIndex, sal_Int32 nLength );
static bool implIsValidRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex, sal_Int32 nLength );
static sal_Unicode implGetCharacter( std::u16string_view rText, sal_Int32 nIndex );
- static OUString implGetTextRange( const OUString& rText, sal_Int32 nStartIndex, sal_Int32 nEndIndex );
+ static OUString implGetTextRange( std::u16string_view rText, sal_Int32 nStartIndex, sal_Int32 nEndIndex );
virtual OUString implGetText() = 0;
virtual css::lang::Locale implGetLocale() = 0;
virtual void implGetSelection( sal_Int32& nStartIndex, sal_Int32& nEndIndex ) = 0;
@@ -101,8 +101,8 @@ namespace comphelper
css::accessibility::TextSegment
*/
static bool implInitTextChangedEvent(
- const OUString& rOldString,
- const OUString& rNewString,
+ std::u16string_view rOldString,
+ std::u16string_view rNewString,
/*out*/ css::uno::Any& rDeleted,
/*out*/ css::uno::Any& rInserted); // throw()
};
diff --git a/include/comphelper/docpasswordhelper.hxx b/include/comphelper/docpasswordhelper.hxx
index a5b99d201831..0b9e646bd2b8 100644
--- a/include/comphelper/docpasswordhelper.hxx
+++ b/include/comphelper/docpasswordhelper.hxx
@@ -331,7 +331,7 @@ public:
*/
static css::uno::Sequence< sal_Int8 > GenerateStd97Key(
- const OUString& aPassword,
+ std::u16string_view aPassword,
const css::uno::Sequence< sal_Int8 >& aDocId );
diff --git a/include/comphelper/storagehelper.hxx b/include/comphelper/storagehelper.hxx
index 10cbb1562d23..c6c47c1a5a11 100644
--- a/include/comphelper/storagehelper.hxx
+++ b/include/comphelper/storagehelper.hxx
@@ -177,7 +177,7 @@ public:
static css::uno::Sequence< css::beans::NamedValue >
CreateGpgPackageEncryptionData();
- static bool IsValidZipEntryFileName( const OUString& aName, bool bSlashAllowed );
+ static bool IsValidZipEntryFileName( std::u16string_view aName, bool bSlashAllowed );
static bool IsValidZipEntryFileName( const sal_Unicode *pChar, sal_Int32 nLength, bool bSlashAllowed );
static bool PathHasSegment( std::u16string_view aPath, std::u16string_view aSegment );
diff --git a/include/comphelper/syntaxhighlight.hxx b/include/comphelper/syntaxhighlight.hxx
index 26cfd9baad62..c8bc100d362b 100644
--- a/include/comphelper/syntaxhighlight.hxx
+++ b/include/comphelper/syntaxhighlight.hxx
@@ -73,7 +73,7 @@ public:
SyntaxHighlighter(HighlighterLanguage language);
~SyntaxHighlighter();
- void getHighlightPortions( const OUString& rLine,
+ void getHighlightPortions( std::u16string_view rLine,
std::vector<HighlightPortion>& pPortions ) const;
HighlighterLanguage GetLanguage() const;
diff --git a/include/comphelper/xmlsechelper.hxx b/include/comphelper/xmlsechelper.hxx
index 48703053c230..9a245877f6ae 100644
--- a/include/comphelper/xmlsechelper.hxx
+++ b/include/comphelper/xmlsechelper.hxx
@@ -31,9 +31,10 @@ namespace comphelper::xmlsec
{
COMPHELPER_DLLPUBLIC OUString GetCertificateKind(const css::security::CertificateKind& rKind);
-COMPHELPER_DLLPUBLIC std::vector<std::pair<OUString, OUString>> parseDN(const OUString& rRawString);
+COMPHELPER_DLLPUBLIC std::vector<std::pair<OUString, OUString>>
+parseDN(std::u16string_view rRawString);
COMPHELPER_DLLPUBLIC std::pair<OUString, OUString>
-GetDNForCertDetailsView(const OUString& rRawString);
+GetDNForCertDetailsView(std::u16string_view rRawString);
COMPHELPER_DLLPUBLIC OUString GetContentPart(const OUString& _rRawString,
const css::security::CertificateKind& rKind);