diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-12 10:04:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-17 08:13:06 +0200 |
commit | b9f9f8253f89151beed27499e6db5c11a7d81eba (patch) | |
tree | 67e1506ecce80867e8a7fbf07ffe2ac5c1f6ad11 /dbaccess/source | |
parent | 0a910746b19f10f184f6ff8f41c868994a472ca9 (diff) |
loplugin:constparams
Change-Id: I3d1b88dbd0ff73fddc08d52f50e0efb42daab89b
Reviewed-on: https://gerrit.libreoffice.org/52756
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source')
6 files changed, 7 insertions, 7 deletions
diff --git a/dbaccess/source/filter/hsqldb/hsqlbinarynode.cxx b/dbaccess/source/filter/hsqldb/hsqlbinarynode.cxx index 2511ef5ec3ea..c7e07ec90b83 100644 --- a/dbaccess/source/filter/hsqldb/hsqlbinarynode.cxx +++ b/dbaccess/source/filter/hsqldb/hsqlbinarynode.cxx @@ -32,7 +32,7 @@ HsqlBinaryNode::HsqlBinaryNode(sal_Int32 nPos) { } -void HsqlBinaryNode::readChildren(HsqlRowInputStream& input) +void HsqlBinaryNode::readChildren(HsqlRowInputStream const& input) { SvStream* pStream = input.getInputStream(); if (!pStream) diff --git a/dbaccess/source/filter/hsqldb/hsqlbinarynode.hxx b/dbaccess/source/filter/hsqldb/hsqlbinarynode.hxx index 5abc294bec2f..0f9271b8eef1 100644 --- a/dbaccess/source/filter/hsqldb/hsqlbinarynode.hxx +++ b/dbaccess/source/filter/hsqldb/hsqlbinarynode.hxx @@ -37,7 +37,7 @@ public: * * @param rInput input stream where the positions should be read from. */ - void readChildren(HsqlRowInputStream& rInput); + void readChildren(HsqlRowInputStream const& rInput); /** * Get Position of left children. It should be called only after position of diff --git a/dbaccess/source/filter/hsqldb/hsqlimport.cxx b/dbaccess/source/filter/hsqldb/hsqlimport.cxx index b7f854777011..c5f77cef12ef 100644 --- a/dbaccess/source/filter/hsqldb/hsqlimport.cxx +++ b/dbaccess/source/filter/hsqldb/hsqlimport.cxx @@ -44,7 +44,7 @@ using ColumnTypeVector = std::vector<dbahsql::ColumnDefinition>; using RowVector = std::vector<Any>; using IndexVector = std::vector<sal_Int32>; -void lcl_setParams(const RowVector& row, Reference<XParameters>& xParam, +void lcl_setParams(const RowVector& row, Reference<XParameters> const& xParam, const ColumnTypeVector& rColTypes) { assert(row.size() == rColTypes.size()); diff --git a/dbaccess/source/filter/hsqldb/rowinputbinary.cxx b/dbaccess/source/filter/hsqldb/rowinputbinary.cxx index 277b5c176b20..a2c736d9b5ac 100644 --- a/dbaccess/source/filter/hsqldb/rowinputbinary.cxx +++ b/dbaccess/source/filter/hsqldb/rowinputbinary.cxx @@ -142,7 +142,7 @@ typedef std::vector<ColumnDefinition> ColumnTypeVector; HsqlRowInputStream::HsqlRowInputStream() {} -void HsqlRowInputStream::setInputStream(Reference<XInputStream>& rStream) +void HsqlRowInputStream::setInputStream(Reference<XInputStream> const& rStream) { m_pStream.reset(utl::UcbStreamHelper::CreateStream(rStream, true)); m_pStream->SetEndian(SvStreamEndian::BIG); diff --git a/dbaccess/source/filter/hsqldb/rowinputbinary.hxx b/dbaccess/source/filter/hsqldb/rowinputbinary.hxx index 1fa5a6066476..3c66b799dc5a 100644 --- a/dbaccess/source/filter/hsqldb/rowinputbinary.hxx +++ b/dbaccess/source/filter/hsqldb/rowinputbinary.hxx @@ -45,7 +45,7 @@ public: */ void seek(sal_Int32 nPos); - void setInputStream(css::uno::Reference<css::io::XInputStream>& rStream); + void setInputStream(css::uno::Reference<css::io::XInputStream> const& rStream); SvStream* getInputStream() const; }; diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx index db4cc89d46fa..e3ca3e8af707 100644 --- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx +++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx @@ -694,7 +694,7 @@ namespace } return aFieldListStr.makeStringAndClear(); } - bool GenerateCriterias( OQueryDesignView* _pView, + bool GenerateCriterias( OQueryDesignView const * _pView, OUStringBuffer& rRetStr, OUStringBuffer& rHavingStr, OTableFields& _rFieldList, @@ -861,7 +861,7 @@ namespace } return true; } - SqlParseError GenerateOrder( OQueryDesignView* _pView, + SqlParseError GenerateOrder( OQueryDesignView const * _pView, OTableFields& _rFieldList, bool bMulti, OUString& _rsRet) |