summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-17 11:35:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-18 08:19:59 +0200
commite669f70613ab1cad02e886aacc7a8d5df2550391 (patch)
treebf8d18012a2e7a27a6e3210004fae4f9ad6caf3b /svl
parent3ccaa4d9e9e18555e86e111259a4908413d36718 (diff)
loplugin:constparams in i18npool,opencl,svl
Change-Id: I23368c3ce6d29c7b2e758e209e5a8315e82a2818 Reviewed-on: https://gerrit.libreoffice.org/40051 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r--svl/qa/unit/svl.cxx4
-rw-r--r--svl/source/crypto/cryptosign.cxx2
-rw-r--r--svl/source/inc/passwordcontainer.hxx2
-rw-r--r--svl/source/inc/poolio.hxx4
-rw-r--r--svl/source/items/poolio.cxx2
-rw-r--r--svl/source/numbers/zforfind.cxx2
-rw-r--r--svl/source/numbers/zforlist.cxx4
-rw-r--r--svl/source/numbers/zformat.cxx4
-rw-r--r--svl/source/passwordcontainer/passwordcontainer.cxx2
-rw-r--r--svl/source/undo/undo.cxx2
10 files changed, 14 insertions, 14 deletions
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index c8b030dc3e00..2b6baaf90293 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -84,7 +84,7 @@ private:
const OUString& sCode,
double fPreviewNumber,
LanguageType eLang,
- OUString& sExpected);
+ OUString const & sExpected);
void checkDateInput( SvNumberFormatter& rFormatter, const char* pTimezone, const char* pIsoDate );
std::unique_ptr<icu::TimeZone> m_pDefaultTimeZone;
};
@@ -393,7 +393,7 @@ void Test::checkPreviewString(SvNumberFormatter& aFormatter,
const OUString& sCode,
double fPreviewNumber,
LanguageType eLang,
- OUString& sExpected)
+ OUString const & sExpected)
{
OUString sStr;
Color* pColor = nullptr;
diff --git a/svl/source/crypto/cryptosign.cxx b/svl/source/crypto/cryptosign.cxx
index daaaa3c18413..e0319a1e9e97 100644
--- a/svl/source/crypto/cryptosign.cxx
+++ b/svl/source/crypto/cryptosign.cxx
@@ -340,7 +340,7 @@ const SEC_ASN1Template TimeStampReq_Template[] =
{ 0, 0, nullptr, 0 }
};
-size_t AppendToBuffer(char *ptr, size_t size, size_t nmemb, void *userdata)
+size_t AppendToBuffer(char const *ptr, size_t size, size_t nmemb, void *userdata)
{
OStringBuffer *pBuffer = static_cast<OStringBuffer*>(userdata);
pBuffer->append(ptr, size*nmemb);
diff --git a/svl/source/inc/passwordcontainer.hxx b/svl/source/inc/passwordcontainer.hxx
index 477e5f640428..e425323b17c9 100644
--- a/svl/source/inc/passwordcontainer.hxx
+++ b/svl/source/inc/passwordcontainer.hxx
@@ -259,7 +259,7 @@ css::task::UrlRecord find(
OUString const & GetMasterPassword( const css::uno::Reference< css::task::XInteractionHandler >& Handler );
/// @throws css::uno::RuntimeException
- void UpdateVector( const OUString& url, ::std::list< NamePassRecord >& toUpdate, NamePassRecord& rec, bool writeFile );
+ void UpdateVector( const OUString& url, ::std::list< NamePassRecord >& toUpdate, NamePassRecord const & rec, bool writeFile );
/// @throws css::uno::RuntimeException
void PrivateAdd( const OUString& aUrl,
diff --git a/svl/source/inc/poolio.hxx b/svl/source/inc/poolio.hxx
index cf2dc7fa5a5f..036a353e9fe0 100644
--- a/svl/source/inc/poolio.hxx
+++ b/svl/source/inc/poolio.hxx
@@ -163,11 +163,11 @@ struct SfxItemPool_Impl
}
void readTheItems(SvStream & rStream, sal_uInt32 nCount, sal_uInt16 nVersion,
- SfxPoolItem * pDefItem, SfxPoolItemArray_Impl ** pArr);
+ SfxPoolItem const * pDefItem, SfxPoolItemArray_Impl ** pArr);
// unit testing
friend class PoolItemTest;
- static SfxItemPool_Impl *GetImpl(SfxItemPool *pPool) { return pPool->pImpl.get(); }
+ static SfxItemPool_Impl *GetImpl(SfxItemPool const *pPool) { return pPool->pImpl.get(); }
};
diff --git a/svl/source/items/poolio.cxx b/svl/source/items/poolio.cxx
index 2f10ef1ba82a..62f9ddbfe1d0 100644
--- a/svl/source/items/poolio.cxx
+++ b/svl/source/items/poolio.cxx
@@ -379,7 +379,7 @@ bool SfxItemPool::IsInRange( sal_uInt16 nWhich ) const
// This had to be moved to a method of its own to keep Solaris GCC happy:
void SfxItemPool_Impl::readTheItems (
SvStream & rStream, sal_uInt32 nItemCount, sal_uInt16 nVer,
- SfxPoolItem * pDefItem, SfxPoolItemArray_Impl ** ppArr)
+ SfxPoolItem const * pDefItem, SfxPoolItemArray_Impl ** ppArr)
{
SfxMultiRecordReader aItemsRec( &rStream, SFX_ITEMPOOL_REC_ITEMS );
diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx
index f2d6a25b8828..7e19b6e26868 100644
--- a/svl/source/numbers/zforfind.cxx
+++ b/svl/source/numbers/zforfind.cxx
@@ -134,7 +134,7 @@ void ImpSvNumberInputScan::Reset()
}
// native number transliteration if necessary
-void TransformInput( SvNumberFormatter* pFormatter, OUString& rStr )
+void TransformInput( SvNumberFormatter const * pFormatter, OUString& rStr )
{
sal_Int32 nPos, nLen;
for ( nPos = 0, nLen = rStr.getLength(); nPos < nLen; ++nPos )
diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx
index adb0c86f12a6..1acc79778e4a 100644
--- a/svl/source/numbers/zforlist.cxx
+++ b/svl/source/numbers/zforlist.cxx
@@ -173,7 +173,7 @@ public:
void Insert( SvNumberFormatter* pThis )
{ aFormatters.push_back( pThis ); }
- void Remove( SvNumberFormatter* pThis );
+ void Remove( SvNumberFormatter const * pThis );
size_t Count()
{ return aFormatters.size(); }
@@ -194,7 +194,7 @@ SvNumberFormatterRegistry_Impl::~SvNumberFormatterRegistry_Impl()
}
-void SvNumberFormatterRegistry_Impl::Remove( SvNumberFormatter* pThis )
+void SvNumberFormatterRegistry_Impl::Remove( SvNumberFormatter const * pThis )
{
for (SvNumberFormatterList_impl::iterator it = aFormatters.begin();
it != aFormatters.end(); ++it)
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx
index 31073130b07b..a736c16518dc 100644
--- a/svl/source/numbers/zformat.cxx
+++ b/svl/source/numbers/zformat.cxx
@@ -1980,8 +1980,8 @@ void SvNumberformat::ImpGetOutputInputLine(double fNumber, OUString& OutString)
}
}
-short SvNumberformat::ImpCheckCondition(double& fNumber,
- double& fLimit,
+short SvNumberformat::ImpCheckCondition(double fNumber,
+ double fLimit,
SvNumberformatLimitOps eOp)
{
switch(eOp)
diff --git a/svl/source/passwordcontainer/passwordcontainer.cxx b/svl/source/passwordcontainer/passwordcontainer.cxx
index a30f1052a697..355594e71c2f 100644
--- a/svl/source/passwordcontainer/passwordcontainer.cxx
+++ b/svl/source/passwordcontainer/passwordcontainer.cxx
@@ -545,7 +545,7 @@ OUString PasswordContainer::EncodePasswords(const vector< OUString >& lines, con
throw RuntimeException("Can't encode!" );
}
-void PasswordContainer::UpdateVector( const OUString& aURL, list< NamePassRecord >& toUpdate, NamePassRecord& aRecord, bool writeFile )
+void PasswordContainer::UpdateVector( const OUString& aURL, list< NamePassRecord >& toUpdate, NamePassRecord const & aRecord, bool writeFile )
{
for( list< NamePassRecord >::iterator aNPIter = toUpdate.begin(); aNPIter != toUpdate.end(); ++aNPIter )
if( aNPIter->GetUserName() == aRecord.GetUserName() )
diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx
index 516f19ed98f6..ce8434180279 100644
--- a/svl/source/undo/undo.cxx
+++ b/svl/source/undo/undo.cxx
@@ -1281,7 +1281,7 @@ void SfxUndoManager::dumpAsXml(xmlTextWriterPtr pWriter) const
}
/// Returns a JSON representation of pAction.
-boost::property_tree::ptree lcl_ActionToJson(size_t nIndex, SfxUndoAction* pAction)
+boost::property_tree::ptree lcl_ActionToJson(size_t nIndex, SfxUndoAction const * pAction)
{
boost::property_tree::ptree aRet;
aRet.put("index", nIndex);