summaryrefslogtreecommitdiff
path: root/sw/inc/editsh.hxx
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-11-18 10:10:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-11-24 09:45:04 +0100
commitbb06f51308428500c9c8d11ae05f0aa03ecc179c (patch)
treeb18620e8572ed6d4c43c8605660d59f5f7a7e531 /sw/inc/editsh.hxx
parent42e8e16cf93dcf944e5c1106f76aaa32057c0397 (diff)
loplugin:stringviewparam extend to comparison operators
which means that some call sites have to change to use unicode string literals i.e. u"foo" instead of "foo" Change-Id: Ie51c3adf56d343dd1d1710777f9d2a43ee66221c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106125 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/editsh.hxx')
-rw-r--r--sw/inc/editsh.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/inc/editsh.hxx b/sw/inc/editsh.hxx
index ff7393292eb5..40a63023f8ac 100644
--- a/sw/inc/editsh.hxx
+++ b/sw/inc/editsh.hxx
@@ -294,7 +294,7 @@ public:
SwCharFormat* GetCurCharFormat() const;
void FillByEx(SwCharFormat*);
SwCharFormat* MakeCharFormat( const OUString& rName );
- SwCharFormat* FindCharFormatByName( const OUString& rName ) const;
+ SwCharFormat* FindCharFormatByName( std::u16string_view rName ) const;
/* FormatCollections (new) - Explaining the general naming pattern:
* GetXXXCount() returns the count of xxx in the document.
@@ -337,7 +337,7 @@ public:
SwTextFormatColl *MakeTextFormatColl(const OUString &rFormatCollName,
SwTextFormatColl *pDerivedFrom = nullptr);
void FillByEx(SwTextFormatColl*);
- SwTextFormatColl* FindTextFormatCollByName( const OUString& rName ) const;
+ SwTextFormatColl* FindTextFormatCollByName( std::u16string_view rName ) const;
/// @return "Auto-Collection" with given Id. If it does not exist create it.
SwTextFormatColl* GetTextCollFromPool( sal_uInt16 nId );
@@ -676,13 +676,13 @@ public:
svt::EmbeddedObjectRef& GetOLEObject() const;
/// Is there an OLEObject with this name (SwFormat)?
- bool HasOLEObj( const OUString &rName ) const;
+ bool HasOLEObj( std::u16string_view rName ) const;
/// @return pointer to the data of the chart in which Cursr is.
void SetChartName( const OUString &rName );
/// Update content of all charts for table with given name.
- void UpdateCharts( const OUString &rName );
+ void UpdateCharts( std::u16string_view rName );
OUString GetCurWord() const;
@@ -806,7 +806,7 @@ public:
void SetLinguRange( SwDocPositions eStart, SwDocPositions eEnd );
/// @return reference set in document according to given name.
- const SwFormatRefMark* GetRefMark( const OUString& rName ) const;
+ const SwFormatRefMark* GetRefMark( std::u16string_view rName ) const;
/** @return names of all references set in document.
If ArrayPointer == 0 then return only whether a RefMark is set in document. */