summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-12-29 12:20:23 +0100
committerStephan Bergmann <sbergman@redhat.com>2021-01-04 15:29:54 +0100
commitc34e8bd71384326184baac7dea31f7ddf9bae6bc (patch)
tree0914b24023030781b3a74a768be9df4d2873b4b9 /include
parenta1cdde17aa27902ee162d5b40860f05c592c4de8 (diff)
loplugin:stringviewparam: operator +=
Change-Id: I30ce1b5bd8fb168da7067c1967c5af2569df2653 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108512 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/i18nlangtag/languagetag.hxx2
-rw-r--r--include/oox/mathml/importutils.hxx3
-rw-r--r--include/sfx2/linkmgr.hxx4
-rw-r--r--include/svx/tbxcolor.hxx6
-rw-r--r--include/unotools/fontdefs.hxx6
5 files changed, 15 insertions, 6 deletions
diff --git a/include/i18nlangtag/languagetag.hxx b/include/i18nlangtag/languagetag.hxx
index d7c1c8787a53..62957f1f7f70 100644
--- a/include/i18nlangtag/languagetag.hxx
+++ b/include/i18nlangtag/languagetag.hxx
@@ -224,7 +224,7 @@ public:
@return The resulting GLIBC locale string if it could be constructed,
if not an empty string is returned.
*/
- OUString getGlibcLocaleString( const OUString & rEncoding ) const;
+ OUString getGlibcLocaleString( std::u16string_view rEncoding ) const;
/** If language tag has a non-default script specified.
*/
diff --git a/include/oox/mathml/importutils.hxx b/include/oox/mathml/importutils.hxx
index 851b2564a100..9ab79a6f0858 100644
--- a/include/oox/mathml/importutils.hxx
+++ b/include/oox/mathml/importutils.hxx
@@ -10,6 +10,7 @@
#define INCLUDED_OOX_MATHML_IMPORTUTILS_HXX
#include <map>
+#include <string_view>
#include <vector>
#include <com/sun/star/uno/Reference.hxx>
@@ -229,7 +230,7 @@ public:
void appendOpeningTag(int token, const AttributeList& attribs);
void appendClosingTag(int token);
// appends the characters after the last appended token
- void appendCharacters(const OUString& characters);
+ void appendCharacters(std::u16string_view characters);
};
inline OUString XmlStream::Tag::attribute(int t, const OUString& def) const
diff --git a/include/sfx2/linkmgr.hxx b/include/sfx2/linkmgr.hxx
index 4a159e16df3e..fcd91ea81f0d 100644
--- a/include/sfx2/linkmgr.hxx
+++ b/include/sfx2/linkmgr.hxx
@@ -96,7 +96,7 @@ public:
// the links connect to a SvLinkSource and adds to the list
void InsertDDELink( SvBaseLink*,
const OUString& rServer,
- const OUString& rTopic,
+ std::u16string_view rTopic,
std::u16string_view rItem );
// if everything is already set at the link!
@@ -176,7 +176,7 @@ const sal_Unicode cTokenSeparator = 0xFFFF;
// - File-/Graphics-LinkNames the last 3 Strings (FileName, Region, Filter)
SFX2_DLLPUBLIC void MakeLnkName( OUString& rName,
const OUString* pType, // Can also be null!!
- const OUString& rFile,
+ std::u16string_view rFile,
std::u16string_view rLink,
const OUString* pFilter = nullptr );
diff --git a/include/svx/tbxcolor.hxx b/include/svx/tbxcolor.hxx
index b98b0be7b326..86dff9a9249f 100644
--- a/include/svx/tbxcolor.hxx
+++ b/include/svx/tbxcolor.hxx
@@ -19,6 +19,10 @@
#pragma once
+#include <sal/config.h>
+
+#include <string_view>
+
#include <com/sun/star/frame/XLayoutManager.hpp>
#include <svx/svxdllapi.h>
@@ -37,7 +41,7 @@ namespace svx
css::frame::XLayoutManager > m_xLayouter;
public:
- ToolboxAccess( const OUString& rToolboxName );
+ ToolboxAccess( std::u16string_view rToolboxName );
public:
/** toggles the toolbox
diff --git a/include/unotools/fontdefs.hxx b/include/unotools/fontdefs.hxx
index 887041f6f15b..ad1d6726f17e 100644
--- a/include/unotools/fontdefs.hxx
+++ b/include/unotools/fontdefs.hxx
@@ -19,6 +19,10 @@
#ifndef INCLUDED_UNOTOOLS_FONTDEFS_HXX
#define INCLUDED_UNOTOOLS_FONTDEFS_HXX
+#include <sal/config.h>
+
+#include <string_view>
+
#include <unotools/unotoolsdllapi.h>
#include <sal/types.h>
#include <rtl/ustring.hxx>
@@ -38,7 +42,7 @@ namespace o3tl
UNOTOOLS_DLLPUBLIC OUString GetSubsFontName( const OUString& rName, SubsFontFlags nFlags );
-UNOTOOLS_DLLPUBLIC void AddTokenFontName( OUString& rName, const OUString& rNewToken );
+UNOTOOLS_DLLPUBLIC void AddTokenFontName( OUString& rName, std::u16string_view rNewToken );
class UNLESS_MERGELIBS(UNOTOOLS_DLLPUBLIC) ConvertChar