diff options
Diffstat (limited to 'sw/source/core/doc')
-rw-r--r-- | sw/source/core/doc/doc.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/doc/docchart.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/doc/docfmt.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/doc/docglbl.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/doc/docnum.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/doc/tblafmt.cxx | 6 |
6 files changed, 10 insertions, 10 deletions
diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx index c971d32f4ac9..9b3b3bb70991 100644 --- a/sw/source/core/doc/doc.cxx +++ b/sw/source/core/doc/doc.cxx @@ -1043,7 +1043,7 @@ void SwDoc::CalculatePagePairsForProspectPrinting( } /// @return the reference in the doc for the name -const SwFormatRefMark* SwDoc::GetRefMark( const OUString& rName ) const +const SwFormatRefMark* SwDoc::GetRefMark( std::u16string_view rName ) const { for (const SfxPoolItem* pItem : GetAttrPool().GetItemSurrogates(RES_TXTATR_REFMARK)) { @@ -1200,7 +1200,7 @@ void SwDoc::InvalidateAutoCompleteFlag() aLayout->SetIdleFlags(); } -const SwFormatINetFormat* SwDoc::FindINetAttr( const OUString& rName ) const +const SwFormatINetFormat* SwDoc::FindINetAttr( std::u16string_view rName ) const { for (const SfxPoolItem* pItem : GetAttrPool().GetItemSurrogates(RES_TXTATR_INETFMT)) { diff --git a/sw/source/core/doc/docchart.cxx b/sw/source/core/doc/docchart.cxx index 0e2cef59555b..053fbad4f3ee 100644 --- a/sw/source/core/doc/docchart.cxx +++ b/sw/source/core/doc/docchart.cxx @@ -117,7 +117,7 @@ void SwDoc::UpdateCharts_( const SwTable& rTable, SwViewShell const & rVSh ) con } } -void SwDoc::UpdateCharts( const OUString &rName ) const +void SwDoc::UpdateCharts( std::u16string_view rName ) const { SwTable* pTmpTable = SwTable::FindTable( FindTableFormatByName( rName ) ); if( pTmpTable ) diff --git a/sw/source/core/doc/docfmt.cxx b/sw/source/core/doc/docfmt.cxx index a27aad094ce2..281e9cb9de64 100644 --- a/sw/source/core/doc/docfmt.cxx +++ b/sw/source/core/doc/docfmt.cxx @@ -731,7 +731,7 @@ void SwDoc::DelTableFrameFormat( SwTableFormat *pFormat ) delete pFormat; } -SwFrameFormat* SwDoc::FindFrameFormatByName( const OUString& rName ) const +SwFrameFormat* SwDoc::FindFrameFormatByName( std::u16string_view rName ) const { return static_cast<SwFrameFormat*>(FindFormatByName( static_cast<SwFormatsBase&>(*mpFrameFormatTable), rName )); } @@ -1608,7 +1608,7 @@ void SwDoc::ReplaceStyles( const SwDoc& rSource, bool bIncludePageStyles ) } SwFormat* SwDoc::FindFormatByName( const SwFormatsBase& rFormatArr, - const OUString& rName ) + std::u16string_view rName ) { SwFormat* pFnd = nullptr; for( size_t n = 0; n < rFormatArr.GetFormatCount(); ++n ) diff --git a/sw/source/core/doc/docglbl.cxx b/sw/source/core/doc/docglbl.cxx index b933843ff6b3..176a1a2a443c 100644 --- a/sw/source/core/doc/docglbl.cxx +++ b/sw/source/core/doc/docglbl.cxx @@ -207,7 +207,7 @@ bool SwDoc::SplitDoc( sal_uInt16 eDocType, const OUString& rPath, bool bOutline, switch( eDocType ) { case SPLITDOC_TO_HTML: - pFilter = SwIoSystem::GetFilterOfFormat("HTML"); + pFilter = SwIoSystem::GetFilterOfFormat(u"HTML"); break; default: diff --git a/sw/source/core/doc/docnum.cxx b/sw/source/core/doc/docnum.cxx index d84574375112..29905b64a246 100644 --- a/sw/source/core/doc/docnum.cxx +++ b/sw/source/core/doc/docnum.cxx @@ -2402,7 +2402,7 @@ SwNumRule* SwDoc::GetNumRuleAtPos(SwPosition& rPos, return pRet; } -sal_uInt16 SwDoc::FindNumRule( const OUString& rName ) const +sal_uInt16 SwDoc::FindNumRule( std::u16string_view rName ) const { for( sal_uInt16 n = mpNumRuleTable->size(); n; ) if( (*mpNumRuleTable)[ --n ]->GetName() == rName ) diff --git a/sw/source/core/doc/tblafmt.cxx b/sw/source/core/doc/tblafmt.cxx index 2289b2290f3e..558c8d6f827d 100644 --- a/sw/source/core/doc/tblafmt.cxx +++ b/sw/source/core/doc/tblafmt.cxx @@ -992,7 +992,7 @@ std::unique_ptr<SwTableAutoFormat> SwTableAutoFormatTable::ReleaseAutoFormat(con return pRet; } -SwTableAutoFormat* SwTableAutoFormatTable::FindAutoFormat(const OUString& rName) const +SwTableAutoFormat* SwTableAutoFormatTable::FindAutoFormat(std::u16string_view rName) const { for (const auto &rFormat : m_pImpl->m_AutoFormats) { @@ -1218,7 +1218,7 @@ OUString SwCellStyleTable::GetBoxFormatName(const SwBoxAutoFormat& rBoxFormat) c return OUString(); } -SwBoxAutoFormat* SwCellStyleTable::GetBoxFormat(const OUString& sName) const +SwBoxAutoFormat* SwCellStyleTable::GetBoxFormat(std::u16string_view sName) const { for (size_t i=0; i < m_aCellStyles.size(); ++i) { @@ -1229,7 +1229,7 @@ SwBoxAutoFormat* SwCellStyleTable::GetBoxFormat(const OUString& sName) const return nullptr; } -void SwCellStyleTable::ChangeBoxFormatName(const OUString& sFromName, const OUString& sToName) +void SwCellStyleTable::ChangeBoxFormatName(std::u16string_view sFromName, const OUString& sToName) { if (!GetBoxFormat(sToName)) { |