summaryrefslogtreecommitdiff
path: root/sc/source/core
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core')
-rw-r--r--sc/source/core/data/conditio.cxx4
-rw-r--r--sc/source/core/data/docpool.cxx2
-rw-r--r--sc/source/core/data/documen3.cxx4
-rw-r--r--sc/source/core/data/documen5.cxx12
-rw-r--r--sc/source/core/data/documen8.cxx12
-rw-r--r--sc/source/core/data/dpcache.cxx2
-rw-r--r--sc/source/core/data/dpgroup.cxx2
-rw-r--r--sc/source/core/data/dpobject.cxx8
-rw-r--r--sc/source/core/data/dpsave.cxx6
-rw-r--r--sc/source/core/data/dptabsrc.cxx2
-rw-r--r--sc/source/core/data/drwlayer.cxx4
-rw-r--r--sc/source/core/tool/addincol.cxx4
-rw-r--r--sc/source/core/tool/interpr2.cxx2
-rw-r--r--sc/source/core/tool/interpr7.cxx2
-rw-r--r--sc/source/core/tool/userlist.cxx2
15 files changed, 34 insertions, 34 deletions
diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx
index f71946688f6f..11e74fa258db 100644
--- a/sc/source/core/data/conditio.cxx
+++ b/sc/source/core/data/conditio.cxx
@@ -1992,7 +1992,7 @@ void ScConditionalFormat::DeleteArea( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCR
maRanges.DeleteArea( nCol1, nRow1, nTab, nCol2, nRow2, nTab );
}
-void ScConditionalFormat::RenameCellStyle(const OUString& rOld, const OUString& rNew)
+void ScConditionalFormat::RenameCellStyle(std::u16string_view rOld, const OUString& rNew)
{
for(const auto& rxEntry : maEntries)
if(rxEntry->GetType() == ScFormatEntry::Type::Condition ||
@@ -2156,7 +2156,7 @@ void ScConditionalFormatList::UpdateMoveTab( sc::RefUpdateMoveTabContext& rCxt )
}
}
-void ScConditionalFormatList::RenameCellStyle( const OUString& rOld, const OUString& rNew )
+void ScConditionalFormatList::RenameCellStyle( std::u16string_view rOld, const OUString& rNew )
{
for (auto const& it : m_ConditionalFormats)
{
diff --git a/sc/source/core/data/docpool.cxx b/sc/source/core/data/docpool.cxx
index a4691f69ef81..f49f99bd0c69 100644
--- a/sc/source/core/data/docpool.cxx
+++ b/sc/source/core/data/docpool.cxx
@@ -358,7 +358,7 @@ void ScDocumentPool::StyleDeleted( const ScStyleSheet* pStyle )
}
}
-void ScDocumentPool::CellStyleCreated( const OUString& rName, const ScDocument& rDoc )
+void ScDocumentPool::CellStyleCreated( std::u16string_view rName, const ScDocument& rDoc )
{
// If a style was created, don't keep any pattern with its name string in the pool,
// because it would compare equal to a pattern with a pointer to the new style.
diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx
index c2adce1c3ae7..944ca8c75982 100644
--- a/sc/source/core/data/documen3.cxx
+++ b/sc/source/core/data/documen3.cxx
@@ -546,8 +546,8 @@ void ScDocument::SetLink( SCTAB nTab, ScLinkMode nMode, const OUString& rDoc,
maTabs[nTab]->SetLink( nMode, rDoc, rFilter, rOptions, rTabName, nRefreshDelay );
}
-bool ScDocument::HasLink( const OUString& rDoc,
- const OUString& rFilter, const OUString& rOptions ) const
+bool ScDocument::HasLink( std::u16string_view rDoc,
+ std::u16string_view rFilter, std::u16string_view rOptions ) const
{
SCTAB nCount = static_cast<SCTAB>(maTabs.size());
for (SCTAB i=0; i<nCount; i++)
diff --git a/sc/source/core/data/documen5.cxx b/sc/source/core/data/documen5.cxx
index 33d0d74703b0..1933601aa7db 100644
--- a/sc/source/core/data/documen5.cxx
+++ b/sc/source/core/data/documen5.cxx
@@ -134,7 +134,7 @@ void ScDocument::UpdateChartArea( const OUString& rChartName,
UpdateChartArea( rChartName, aRLR, bColHeaders, bRowHeaders, bAdd );
}
-uno::Reference< chart2::XChartDocument > ScDocument::GetChartByName( const OUString& rChartName )
+uno::Reference< chart2::XChartDocument > ScDocument::GetChartByName( std::u16string_view rChartName )
{
uno::Reference< chart2::XChartDocument > xReturn;
@@ -164,7 +164,7 @@ uno::Reference< chart2::XChartDocument > ScDocument::GetChartByName( const OUStr
return xReturn;
}
-void ScDocument::GetChartRanges( const OUString& rChartName, ::std::vector< ScRangeList >& rRangesVector, const ScDocument& rSheetNameDoc )
+void ScDocument::GetChartRanges( std::u16string_view rChartName, ::std::vector< ScRangeList >& rRangesVector, const ScDocument& rSheetNameDoc )
{
rRangesVector.clear();
uno::Reference< chart2::XChartDocument > xChartDoc( GetChartByName( rChartName ) );
@@ -181,7 +181,7 @@ void ScDocument::GetChartRanges( const OUString& rChartName, ::std::vector< ScRa
}
}
-void ScDocument::SetChartRanges( const OUString& rChartName, const ::std::vector< ScRangeList >& rRangesVector )
+void ScDocument::SetChartRanges( std::u16string_view rChartName, const ::std::vector< ScRangeList >& rRangesVector )
{
uno::Reference< chart2::XChartDocument > xChartDoc( GetChartByName( rChartName ) );
if ( !xChartDoc.is() )
@@ -199,7 +199,7 @@ void ScDocument::SetChartRanges( const OUString& rChartName, const ::std::vector
ScChartHelper::SetChartRanges( xChartDoc, aRangeStrings );
}
-void ScDocument::GetOldChartParameters( const OUString& rName,
+void ScDocument::GetOldChartParameters( std::u16string_view rName,
ScRangeList& rRanges, bool& rColHeaders, bool& rRowHeaders )
{
// used for undo of changing chart source area
@@ -479,7 +479,7 @@ void ScDocument::UpdateChartRef( UpdateRefMode eUpdateRefMode,
}
}
-void ScDocument::SetChartRangeList( const OUString& rChartName,
+void ScDocument::SetChartRangeList( std::u16string_view rChartName,
const ScRangeListRef& rNewRangeListRef )
{
// called from ChartListener
@@ -533,7 +533,7 @@ bool ScDocument::HasData( SCCOL nCol, SCROW nRow, SCTAB nTab )
}
uno::Reference< embed::XEmbeddedObject >
- ScDocument::FindOleObjectByName( const OUString& rName )
+ ScDocument::FindOleObjectByName( std::u16string_view rName )
{
if (!mpDrawLayer)
return uno::Reference< embed::XEmbeddedObject >();
diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx
index 3e09e16656ab..e4cb29e8fae7 100644
--- a/sc/source/core/data/documen8.cxx
+++ b/sc/source/core/data/documen8.cxx
@@ -292,7 +292,7 @@ void ScDocument::CopyStdStylesFrom( const ScDocument& rSrcDoc )
mxPoolHelper->GetStylePool()->CopyStdStylesFrom( rSrcDoc.mxPoolHelper->GetStylePool() );
}
-void ScDocument::InvalidateTextWidth( const OUString& rStyleName )
+void ScDocument::InvalidateTextWidth( std::u16string_view rStyleName )
{
const SCTAB nCount = GetTableCount();
for ( SCTAB i=0; i<nCount && maTabs[i]; i++ )
@@ -307,7 +307,7 @@ void ScDocument::InvalidateTextWidth( SCTAB nTab )
InvalidateTextWidth( &aAdrFrom, &aAdrTo, false );
}
-bool ScDocument::IsPageStyleInUse( const OUString& rStrPageStyle, SCTAB* pInTab )
+bool ScDocument::IsPageStyleInUse( std::u16string_view rStrPageStyle, SCTAB* pInTab )
{
bool bInUse = false;
const SCTAB nCount = GetTableCount();
@@ -322,7 +322,7 @@ bool ScDocument::IsPageStyleInUse( const OUString& rStrPageStyle, SCTAB* pInTab
return bInUse;
}
-bool ScDocument::RemovePageStyleInUse( const OUString& rStyle )
+bool ScDocument::RemovePageStyleInUse( std::u16string_view rStyle )
{
bool bWasInUse = false;
const SCTAB nCount = GetTableCount();
@@ -337,7 +337,7 @@ bool ScDocument::RemovePageStyleInUse( const OUString& rStyle )
return bWasInUse;
}
-bool ScDocument::RenamePageStyleInUse( const OUString& rOld, const OUString& rNew )
+bool ScDocument::RenamePageStyleInUse( std::u16string_view rOld, const OUString& rNew )
{
bool bWasInUse = false;
const SCTAB nCount = GetTableCount();
@@ -903,7 +903,7 @@ namespace {
@return The DDE link, if it exists, otherwise 0. */
ScDdeLink* lclGetDdeLink(
const sfx2::LinkManager* pLinkManager,
- const OUString& rAppl, const OUString& rTopic, const OUString& rItem, sal_uInt8 nMode,
+ std::u16string_view rAppl, std::u16string_view rTopic, std::u16string_view rItem, sal_uInt8 nMode,
size_t* pnDdePos = nullptr )
{
if( pLinkManager )
@@ -954,7 +954,7 @@ ScDdeLink* lclGetDdeLink( const sfx2::LinkManager* pLinkManager, size_t nDdePos
} // namespace
-bool ScDocument::FindDdeLink( const OUString& rAppl, const OUString& rTopic, const OUString& rItem,
+bool ScDocument::FindDdeLink( std::u16string_view rAppl, std::u16string_view rTopic, std::u16string_view rItem,
sal_uInt8 nMode, size_t& rnDdePos )
{
return lclGetDdeLink( GetLinkManager(), rAppl, rTopic, rItem, nMode, &rnDdePos ) != nullptr;
diff --git a/sc/source/core/data/dpcache.cxx b/sc/source/core/data/dpcache.cxx
index 02fc414e2642..d16ceb957c61 100644
--- a/sc/source/core/data/dpcache.cxx
+++ b/sc/source/core/data/dpcache.cxx
@@ -1084,7 +1084,7 @@ tools::Long ScDPCache::GetDimMemberCount(tools::Long nDim) const
return maFields[nDim]->maItems.size();
}
-SCCOL ScDPCache::GetDimensionIndex(const OUString& sName) const
+SCCOL ScDPCache::GetDimensionIndex(std::u16string_view sName) const
{
for (size_t i = 1; i < maLabelNames.size(); ++i)
{
diff --git a/sc/source/core/data/dpgroup.cxx b/sc/source/core/data/dpgroup.cxx
index e2ef44e785bd..b2b5b4681306 100644
--- a/sc/source/core/data/dpgroup.cxx
+++ b/sc/source/core/data/dpgroup.cxx
@@ -493,7 +493,7 @@ void ScDPGroupTableData::SetNumGroupDimension( sal_Int32 nIndex, const ScDPNumGr
}
}
-sal_Int32 ScDPGroupTableData::GetDimensionIndex( const OUString& rName )
+sal_Int32 ScDPGroupTableData::GetDimensionIndex( std::u16string_view rName )
{
for (tools::Long i = 0; i < nSourceCount; ++i) // nSourceCount excludes data layout
if (pSourceData->getDimensionName(i) == rName) //TODO: ignore case?
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index 74a99790422a..ba1a8f4d398e 100644
--- a/sc/source/core/data/dpobject.cxx
+++ b/sc/source/core/data/dpobject.cxx
@@ -1426,7 +1426,7 @@ void ScDPObject::GetMemberResultNames(ScDPUniqueStringSet& rNames, tools::Long n
pOutput->GetMemberResultNames(rNames, nDimension); // used only with table data -> level not needed
}
-OUString ScDPObject::GetFormattedString(const OUString& rDimName, const double fValue)
+OUString ScDPObject::GetFormattedString(std::u16string_view rDimName, const double fValue)
{
ScDPTableData* pTableData = GetTableData();
if(!pTableData)
@@ -3689,7 +3689,7 @@ const ScDPObject& ScDPCollection::operator [](size_t nIndex) const
return *maTables[nIndex];
}
-ScDPObject* ScDPCollection::GetByName(const OUString& rName) const
+ScDPObject* ScDPCollection::GetByName(std::u16string_view rName) const
{
for (std::unique_ptr<ScDPObject> const & pObject : maTables)
{
@@ -3872,7 +3872,7 @@ void ScDPCollection::GetAllTables(const ScRange& rSrcRange, o3tl::sorted_vector<
rRefs.swap(aRefs);
}
-void ScDPCollection::GetAllTables(const OUString& rSrcName, o3tl::sorted_vector<ScDPObject*>& rRefs) const
+void ScDPCollection::GetAllTables(std::u16string_view rSrcName, o3tl::sorted_vector<ScDPObject*>& rRefs) const
{
o3tl::sorted_vector<ScDPObject*> aRefs;
for (const auto& rxTable : maTables)
@@ -3901,7 +3901,7 @@ void ScDPCollection::GetAllTables(const OUString& rSrcName, o3tl::sorted_vector<
}
void ScDPCollection::GetAllTables(
- sal_Int32 nSdbType, const OUString& rDBName, const OUString& rCommand,
+ sal_Int32 nSdbType, std::u16string_view rDBName, std::u16string_view rCommand,
o3tl::sorted_vector<ScDPObject*>& rRefs) const
{
o3tl::sorted_vector<ScDPObject*> aRefs;
diff --git a/sc/source/core/data/dpsave.cxx b/sc/source/core/data/dpsave.cxx
index 95bd2a84985f..cb8e56e6d6fa 100644
--- a/sc/source/core/data/dpsave.cxx
+++ b/sc/source/core/data/dpsave.cxx
@@ -842,7 +842,7 @@ ScDPSaveDimension* ScDPSaveData::GetDimensionByName(const OUString& rName)
return AppendNewDimension(rName, false);
}
-ScDPSaveDimension* ScDPSaveData::GetExistingDimensionByName(const OUString& rName) const
+ScDPSaveDimension* ScDPSaveData::GetExistingDimensionByName(std::u16string_view rName) const
{
for (auto const& iter : m_DimList)
{
@@ -882,7 +882,7 @@ ScDPSaveDimension* ScDPSaveData::GetExistingDataLayoutDimension() const
return nullptr;
}
-ScDPSaveDimension* ScDPSaveData::DuplicateDimension(const OUString& rName)
+ScDPSaveDimension* ScDPSaveData::DuplicateDimension(std::u16string_view rName)
{
// always insert new
@@ -1292,7 +1292,7 @@ void ScDPSaveData::SyncAllDimensionMembers(ScDPTableData* pData)
}
}
-bool ScDPSaveData::HasInvisibleMember(const OUString& rDimName) const
+bool ScDPSaveData::HasInvisibleMember(std::u16string_view rDimName) const
{
ScDPSaveDimension* pDim = GetExistingDimensionByName(rDimName);
if (!pDim)
diff --git a/sc/source/core/data/dptabsrc.cxx b/sc/source/core/data/dptabsrc.cxx
index 56f5256929a0..b57bf76dcb96 100644
--- a/sc/source/core/data/dptabsrc.cxx
+++ b/sc/source/core/data/dptabsrc.cxx
@@ -310,7 +310,7 @@ void ScDPSource::SetDupCount( tools::Long nNew )
nDupCount = nNew;
}
-ScDPDimension* ScDPSource::AddDuplicated(const OUString& rNewName)
+ScDPDimension* ScDPSource::AddDuplicated(std::u16string_view rNewName)
{
OSL_ENSURE( pDimensions.is(), "AddDuplicated without dimensions?" );
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx
index 3901434df913..477eefead496 100644
--- a/sc/source/core/data/drwlayer.cxx
+++ b/sc/source/core/data/drwlayer.cxx
@@ -2055,7 +2055,7 @@ OUString ScDrawLayer::GetVisibleName( const SdrObject* pObj )
return aName;
}
-static bool IsNamedObject( const SdrObject* pObj, const OUString& rName )
+static bool IsNamedObject( const SdrObject* pObj, std::u16string_view rName )
{
// sal_True if rName is the object's Name or PersistName
// (used to find a named object)
@@ -2065,7 +2065,7 @@ static bool IsNamedObject( const SdrObject* pObj, const OUString& rName )
static_cast<const SdrOle2Obj*>(pObj)->GetPersistName() == rName ) );
}
-SdrObject* ScDrawLayer::GetNamedObject( const OUString& rName, sal_uInt16 nId, SCTAB& rFoundTab ) const
+SdrObject* ScDrawLayer::GetNamedObject( std::u16string_view rName, sal_uInt16 nId, SCTAB& rFoundTab ) const
{
sal_uInt16 nTabCount = GetPageCount();
for (sal_uInt16 nTab=0; nTab<nTabCount; nTab++)
diff --git a/sc/source/core/tool/addincol.cxx b/sc/source/core/tool/addincol.cxx
index fba985930b78..aa6e15111808 100644
--- a/sc/source/core/tool/addincol.cxx
+++ b/sc/source/core/tool/addincol.cxx
@@ -595,7 +595,7 @@ bool ScUnoAddInCollection::GetCalcName( const OUString& rExcelName, OUString& rR
return false;
}
-static bool IsTypeName( const OUString& rName, const uno::Type& rType )
+static bool IsTypeName( std::u16string_view rName, const uno::Type& rType )
{
return rName == rType.getTypeName();
}
@@ -930,7 +930,7 @@ static void lcl_UpdateFunctionList( const ScFunctionList& rFunctionList, const S
}
}
-static const ScAddInArgDesc* lcl_FindArgDesc( const ScUnoAddInFuncData& rFuncData, const OUString& rArgIntName )
+static const ScAddInArgDesc* lcl_FindArgDesc( const ScUnoAddInFuncData& rFuncData, std::u16string_view rArgIntName )
{
tools::Long nArgCount = rFuncData.GetArgumentCount();
const ScAddInArgDesc* pArguments = rFuncData.GetArguments();
diff --git a/sc/source/core/tool/interpr2.cxx b/sc/source/core/tool/interpr2.cxx
index f7fd4a96fbd0..f917e40acae2 100644
--- a/sc/source/core/tool/interpr2.cxx
+++ b/sc/source/core/tool/interpr2.cxx
@@ -2708,7 +2708,7 @@ void ScInterpreter::ScStyle()
}
static ScDdeLink* lcl_GetDdeLink( const sfx2::LinkManager* pLinkMgr,
- const OUString& rA, const OUString& rT, const OUString& rI, sal_uInt8 nM )
+ std::u16string_view rA, std::u16string_view rT, std::u16string_view rI, sal_uInt8 nM )
{
size_t nCount = pLinkMgr->GetLinks().size();
for (size_t i=0; i<nCount; i++ )
diff --git a/sc/source/core/tool/interpr7.cxx b/sc/source/core/tool/interpr7.cxx
index b615830e4e56..fbc403db56a7 100644
--- a/sc/source/core/tool/interpr7.cxx
+++ b/sc/source/core/tool/interpr7.cxx
@@ -241,7 +241,7 @@ void ScInterpreter::ScFilterXML()
}
}
-static ScWebServiceLink* lcl_GetWebServiceLink(const sfx2::LinkManager* pLinkMgr, const OUString& rURL)
+static ScWebServiceLink* lcl_GetWebServiceLink(const sfx2::LinkManager* pLinkMgr, std::u16string_view rURL)
{
size_t nCount = pLinkMgr->GetLinks().size();
for (size_t i=0; i<nCount; ++i)
diff --git a/sc/source/core/tool/userlist.cxx b/sc/source/core/tool/userlist.cxx
index 6d68545e3284..4facfde96b8f 100644
--- a/sc/source/core/tool/userlist.cxx
+++ b/sc/source/core/tool/userlist.cxx
@@ -325,7 +325,7 @@ bool ScUserList::operator!=( const ScUserList& r ) const
return !operator==( r );
}
-bool ScUserList::HasEntry( const OUString& rStr ) const
+bool ScUserList::HasEntry( std::u16string_view rStr ) const
{
return ::std::any_of(maData.begin(), maData.end(),
[&] (std::unique_ptr<ScUserListData> const& pData)