summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-17 10:10:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-17 11:30:43 +0200
commitd5f94d931886a55ec3229e7b860d455037266622 (patch)
tree353bc02ae7f05d97017f616178a9ea04937f5679 /sax
parentff8e463ab486ae863ab3a86ce957f01ed7f8af90 (diff)
loplugin:constparams in basegfx,sax,shell
Change-Id: I90a9d105a6db146ae64cff56983def94b9472a95 Reviewed-on: https://gerrit.libreoffice.org/40043 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sax')
-rw-r--r--sax/inc/xml2utf.hxx2
-rw-r--r--sax/source/fastparser/legacyfastparser.cxx4
-rw-r--r--sax/source/tools/fastattribs.cxx2
-rw-r--r--sax/source/tools/fastserializer.cxx6
-rw-r--r--sax/source/tools/fastserializer.hxx6
5 files changed, 10 insertions, 10 deletions
diff --git a/sax/inc/xml2utf.hxx b/sax/inc/xml2utf.hxx
index 18b238844220..44e4b461293e 100644
--- a/sax/inc/xml2utf.hxx
+++ b/sax/inc/xml2utf.hxx
@@ -80,7 +80,7 @@ public:
~XMLFile2UTFConverter();
- void setInputStream( css::uno::Reference< css::io::XInputStream > &r ) { m_in = r; }
+ void setInputStream( css::uno::Reference< css::io::XInputStream > const &r ) { m_in = r; }
void setEncoding( const OString &s ) { m_sEncoding = s; }
diff --git a/sax/source/fastparser/legacyfastparser.cxx b/sax/source/fastparser/legacyfastparser.cxx
index 81e394b4f907..f7b41fea8817 100644
--- a/sax/source/fastparser/legacyfastparser.cxx
+++ b/sax/source/fastparser/legacyfastparser.cxx
@@ -56,7 +56,7 @@ private:
public:
NamespaceHandler();
- void addNSDeclAttributes( rtl::Reference < comphelper::AttributeList >& rAttrList );
+ void addNSDeclAttributes( rtl::Reference < comphelper::AttributeList > const & rAttrList );
//XFastNamespaceHandler
virtual void SAL_CALL registerNamespace( const OUString& rNamespacePrefix, const OUString& rNamespaceURI ) override;
@@ -67,7 +67,7 @@ NamespaceHandler::NamespaceHandler()
{
}
-void NamespaceHandler::addNSDeclAttributes( rtl::Reference < comphelper::AttributeList >& rAttrList )
+void NamespaceHandler::addNSDeclAttributes( rtl::Reference < comphelper::AttributeList > const & rAttrList )
{
for(const auto& aNamespaceDefine : m_aNamespaceDefines)
{
diff --git a/sax/source/tools/fastattribs.cxx b/sax/source/tools/fastattribs.cxx
index 564f71d27b81..314f156e8dfe 100644
--- a/sax/source/tools/fastattribs.cxx
+++ b/sax/source/tools/fastattribs.cxx
@@ -240,7 +240,7 @@ const FastAttributeList::FastAttributeIter FastAttributeList::find( sal_Int32 nT
sal_Int32 FastTokenHandlerBase::getTokenFromChars(
const css::uno::Reference< css::xml::sax::XFastTokenHandler > &xTokenHandler,
- FastTokenHandlerBase *pTokenHandler,
+ const FastTokenHandlerBase *pTokenHandler,
const char *pToken, size_t nLen /* = 0 */ )
{
sal_Int32 nRet;
diff --git a/sax/source/tools/fastserializer.cxx b/sax/source/tools/fastserializer.cxx
index 0642cbaac391..7c1e3c77c027 100644
--- a/sax/source/tools/fastserializer.cxx
+++ b/sax/source/tools/fastserializer.cxx
@@ -296,7 +296,7 @@ namespace sax_fastparser {
}
#endif
- void FastSaxSerializer::startFastElement( ::sal_Int32 Element, FastAttributeList* pAttrList )
+ void FastSaxSerializer::startFastElement( ::sal_Int32 Element, FastAttributeList const * pAttrList )
{
if ( !mbMarkStackEmpty )
{
@@ -358,7 +358,7 @@ namespace sax_fastparser {
writeBytes(sClosingBracket, N_CHARS(sClosingBracket));
}
- void FastSaxSerializer::singleFastElement( ::sal_Int32 Element, FastAttributeList* pAttrList )
+ void FastSaxSerializer::singleFastElement( ::sal_Int32 Element, FastAttributeList const * pAttrList )
{
if ( !mbMarkStackEmpty )
{
@@ -410,7 +410,7 @@ namespace sax_fastparser {
maTokenValues.clear();
}
- void FastSaxSerializer::writeFastAttributeList(FastAttributeList& rAttrList)
+ void FastSaxSerializer::writeFastAttributeList(FastAttributeList const & rAttrList)
{
#ifdef DBG_UTIL
::std::set<OString> DebugAttributes;
diff --git a/sax/source/tools/fastserializer.hxx b/sax/source/tools/fastserializer.hxx
index ca8b67472520..e2a4b4daccdc 100644
--- a/sax/source/tools/fastserializer.hxx
+++ b/sax/source/tools/fastserializer.hxx
@@ -80,7 +80,7 @@ public:
from the element.
*/
- void startFastElement( ::sal_Int32 Element, FastAttributeList* pAttrList = nullptr );
+ void startFastElement( ::sal_Int32 Element, FastAttributeList const * pAttrList = nullptr );
/** receives notification of the end of an known element.
@see startFastElement
@@ -104,7 +104,7 @@ public:
from the element.
*/
- void singleFastElement( ::sal_Int32 Element, FastAttributeList* pAttrList = nullptr );
+ void singleFastElement( ::sal_Int32 Element, FastAttributeList const * pAttrList = nullptr );
// C++ helpers
void writeId( ::sal_Int32 Element );
@@ -237,7 +237,7 @@ private:
#endif
void writeTokenValueList();
- void writeFastAttributeList(FastAttributeList& rAttrList);
+ void writeFastAttributeList(FastAttributeList const & rAttrList);
/** Forward the call to the output stream, or write to the stack.