summaryrefslogtreecommitdiff
path: root/sc/source/filter/excel
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-12 08:38:35 +0200
committerNoel Grandin <noel@peralex.com>2016-04-12 10:16:25 +0200
commit9760db660a3b9db267a9fc635e2cb1e4136cf5f3 (patch)
treed1171573618144a72952de9fb45281b8ed1e7826 /sc/source/filter/excel
parent553f7e515d9183d50221bbda9e8e6a023e4d6c57 (diff)
clang-tidy performance-unnecessary-value-param in sc
Change-Id: Ia2255e1e3f7a8834a4b5d2a6bbab2c6dd498d356
Diffstat (limited to 'sc/source/filter/excel')
-rw-r--r--sc/source/filter/excel/xecontent.cxx4
-rw-r--r--sc/source/filter/excel/xeextlst.cxx4
-rw-r--r--sc/source/filter/excel/xename.cxx22
-rw-r--r--sc/source/filter/excel/xilink.cxx4
4 files changed, 17 insertions, 17 deletions
diff --git a/sc/source/filter/excel/xecontent.cxx b/sc/source/filter/excel/xecontent.cxx
index f8162b4e1122..914c65783b12 100644
--- a/sc/source/filter/excel/xecontent.cxx
+++ b/sc/source/filter/excel/xecontent.cxx
@@ -234,7 +234,7 @@ XclExpSst::~XclExpSst()
{
}
-sal_uInt32 XclExpSst::Insert( XclExpStringRef xString )
+sal_uInt32 XclExpSst::Insert( const XclExpStringRef& xString )
{
return mxImpl->Insert( xString );
}
@@ -545,7 +545,7 @@ XclExpLabelranges::XclExpLabelranges( const XclExpRoot& rRoot ) :
}
void XclExpLabelranges::FillRangeList( ScRangeList& rScRanges,
- ScRangePairListRef xLabelRangesRef, SCTAB nScTab )
+ const ScRangePairListRef& xLabelRangesRef, SCTAB nScTab )
{
for ( size_t i = 0, nPairs = xLabelRangesRef->size(); i < nPairs; ++i )
{
diff --git a/sc/source/filter/excel/xeextlst.cxx b/sc/source/filter/excel/xeextlst.cxx
index c8f9d8b555e7..c9a321420eea 100644
--- a/sc/source/filter/excel/xeextlst.cxx
+++ b/sc/source/filter/excel/xeextlst.cxx
@@ -429,7 +429,7 @@ void XclExpExtCondFormat::SaveXml( XclExpXmlStream& rStrm )
rWorksheet->endElement( XML_ext );
}
-void XclExpExtCondFormat::AddRecord( XclExpExtConditionalFormattingRef aEntry )
+void XclExpExtCondFormat::AddRecord( const XclExpExtConditionalFormattingRef& aEntry )
{
maCF.AppendRecord( aEntry );
}
@@ -448,7 +448,7 @@ void XclExtLst::SaveXml( XclExpXmlStream& rStrm )
rWorksheet->endElement( XML_extLst );
}
-void XclExtLst::AddRecord( XclExpExtRef aEntry )
+void XclExtLst::AddRecord( const XclExpExtRef& aEntry )
{
maExtEntries.AppendRecord( aEntry );
}
diff --git a/sc/source/filter/excel/xename.cxx b/sc/source/filter/excel/xename.cxx
index 56da620a4d59..8c03f9e62076 100644
--- a/sc/source/filter/excel/xename.cxx
+++ b/sc/source/filter/excel/xename.cxx
@@ -46,7 +46,7 @@ public:
explicit XclExpName( const XclExpRoot& rRoot, sal_Unicode cBuiltIn );
/** Sets a token array containing the definition of this name. */
- void SetTokenArray( XclTokenArrayRef xTokArr );
+ void SetTokenArray( const XclTokenArrayRef& xTokArr );
/** Changes this defined name to be local on the specified Calc sheet. */
void SetLocalTab( SCTAB nScTab );
/** Hides or unhides the defined name. */
@@ -117,10 +117,10 @@ public:
sal_uInt16 InsertName( SCTAB nTab, sal_uInt16 nScNameIdx );
/** Inserts a new built-in defined name. */
- sal_uInt16 InsertBuiltInName( sal_Unicode cBuiltIn, XclTokenArrayRef xTokArr, SCTAB nScTab, const ScRangeList& aRangeList );
- sal_uInt16 InsertBuiltInName( sal_Unicode cBuiltIn, XclTokenArrayRef xTokArr, const ScRange& aRange );
+ sal_uInt16 InsertBuiltInName( sal_Unicode cBuiltIn, const XclTokenArrayRef& xTokArr, SCTAB nScTab, const ScRangeList& aRangeList );
+ sal_uInt16 InsertBuiltInName( sal_Unicode cBuiltIn, const XclTokenArrayRef& xTokArr, const ScRange& aRange );
/** Inserts a new defined name. Sets another unused name, if rName already exists. */
- sal_uInt16 InsertUniqueName( const OUString& rName, XclTokenArrayRef xTokArr, SCTAB nScTab );
+ sal_uInt16 InsertUniqueName( const OUString& rName, const XclTokenArrayRef& xTokArr, SCTAB nScTab );
/** Returns index of an existing name, or creates a name without definition. */
sal_uInt16 InsertRawName( const OUString& rName );
/** Searches or inserts a defined name describing a macro name.
@@ -162,7 +162,7 @@ private:
/** Appends a new NAME record to the record list.
@return The 1-based NAME record index used elsewhere in the Excel file. */
- sal_uInt16 Append( XclExpNameRef xName );
+ sal_uInt16 Append( const XclExpNameRef& xName );
/** Creates a new NAME record for the passed user-defined name.
@return The 1-based NAME record index used elsewhere in the Excel file. */
sal_uInt16 CreateName( SCTAB nTab, const ScRangeData& rRangeData );
@@ -226,7 +226,7 @@ XclExpName::XclExpName( const XclExpRoot& rRoot, sal_Unicode cBuiltIn ) :
}
}
-void XclExpName::SetTokenArray( XclTokenArrayRef xTokArr )
+void XclExpName::SetTokenArray( const XclTokenArrayRef& xTokArr )
{
mxTokArr = xTokArr;
}
@@ -364,7 +364,7 @@ sal_uInt16 XclExpNameManagerImpl::InsertName( SCTAB nTab, sal_uInt16 nScNameIdx
return nNameIdx;
}
-sal_uInt16 XclExpNameManagerImpl::InsertBuiltInName( sal_Unicode cBuiltIn, XclTokenArrayRef xTokArr, const ScRange& aRange )
+sal_uInt16 XclExpNameManagerImpl::InsertBuiltInName( sal_Unicode cBuiltIn, const XclTokenArrayRef& xTokArr, const ScRange& aRange )
{
XclExpNameRef xName( new XclExpName( GetRoot(), cBuiltIn ) );
xName->SetTokenArray( xTokArr );
@@ -374,7 +374,7 @@ sal_uInt16 XclExpNameManagerImpl::InsertBuiltInName( sal_Unicode cBuiltIn, XclTo
return Append( xName );
}
-sal_uInt16 XclExpNameManagerImpl::InsertBuiltInName( sal_Unicode cBuiltIn, XclTokenArrayRef xTokArr, SCTAB nScTab, const ScRangeList& rRangeList )
+sal_uInt16 XclExpNameManagerImpl::InsertBuiltInName( sal_Unicode cBuiltIn, const XclTokenArrayRef& xTokArr, SCTAB nScTab, const ScRangeList& rRangeList )
{
XclExpNameRef xName( new XclExpName( GetRoot(), cBuiltIn ) );
xName->SetTokenArray( xTokArr );
@@ -386,7 +386,7 @@ sal_uInt16 XclExpNameManagerImpl::InsertBuiltInName( sal_Unicode cBuiltIn, XclTo
}
sal_uInt16 XclExpNameManagerImpl::InsertUniqueName(
- const OUString& rName, XclTokenArrayRef xTokArr, SCTAB nScTab )
+ const OUString& rName, const XclTokenArrayRef& xTokArr, SCTAB nScTab )
{
OSL_ENSURE( !rName.isEmpty(), "XclExpNameManagerImpl::InsertUniqueName - empty name" );
XclExpNameRef xName( new XclExpName( GetRoot(), GetUnusedName( rName ) ) );
@@ -515,7 +515,7 @@ OUString XclExpNameManagerImpl::GetUnusedName( const OUString& rName ) const
return aNewName;
}
-sal_uInt16 XclExpNameManagerImpl::Append( XclExpNameRef xName )
+sal_uInt16 XclExpNameManagerImpl::Append( const XclExpNameRef& xName )
{
if( maNameList.GetSize() == 0xFFFF )
return 0;
@@ -700,7 +700,7 @@ sal_uInt16 XclExpNameManager::InsertBuiltInName( sal_Unicode cBuiltIn, const ScR
}
sal_uInt16 XclExpNameManager::InsertUniqueName(
- const OUString& rName, XclTokenArrayRef xTokArr, SCTAB nScTab )
+ const OUString& rName, const XclTokenArrayRef& xTokArr, SCTAB nScTab )
{
return mxImpl->InsertUniqueName( rName, xTokArr, nScTab );
}
diff --git a/sc/source/filter/excel/xilink.cxx b/sc/source/filter/excel/xilink.cxx
index 0ffbef66cf10..467cc99a5208 100644
--- a/sc/source/filter/excel/xilink.cxx
+++ b/sc/source/filter/excel/xilink.cxx
@@ -71,7 +71,7 @@ public:
/** Reads a CRN record (external referenced cell) at the specified address. */
void ReadCrn( XclImpStream& rStrm, const XclAddress& rXclPos );
- void LoadCachedValues(ScExternalRefCache::TableTypeRef pCacheTable);
+ void LoadCachedValues(const ScExternalRefCache::TableTypeRef& pCacheTable);
private:
typedef std::shared_ptr< XclImpCrn > XclImpCrnRef;
@@ -574,7 +574,7 @@ void XclImpSupbookTab::ReadCrn( XclImpStream& rStrm, const XclAddress& rXclPos )
maCrnList.push_back( crnRef );
}
-void XclImpSupbookTab::LoadCachedValues(ScExternalRefCache::TableTypeRef pCacheTable)
+void XclImpSupbookTab::LoadCachedValues(const ScExternalRefCache::TableTypeRef& pCacheTable)
{
if (maCrnList.empty())
return;