summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-11-01 15:54:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-11-02 10:45:01 +0100
commit455e4011f7052c5d1fb4693a573e0998cf6badc8 (patch)
treece9b3b511a3b61b936af7a4970ab4bcbaf620628 /ucb
parentcee129bf17bd604f96e3cfe62d3a55336e248ccd (diff)
improve constparam loplugin
lots of little fixes to make the logic less pessimistic Change-Id: If368822984250b11b98c56f5890177a1402e8660 Reviewed-on: https://gerrit.libreoffice.org/44168 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/sorter/sortresult.cxx8
-rw-r--r--ucb/source/sorter/sortresult.hxx8
2 files changed, 8 insertions, 8 deletions
diff --git a/ucb/source/sorter/sortresult.cxx b/ucb/source/sorter/sortresult.cxx
index cd7ee4aab6f0..6c5e99226e40 100644
--- a/ucb/source/sorter/sortresult.cxx
+++ b/ucb/source/sorter/sortresult.cxx
@@ -871,7 +871,7 @@ void SAL_CALL SortedResultSet::removeVetoableChangeListener(
sal_IntPtr SortedResultSet::CompareImpl( const Reference < XResultSet >& xResultOne,
const Reference < XResultSet >& xResultTwo,
sal_IntPtr nIndexOne, sal_IntPtr nIndexTwo,
- SortInfo* pSortInfo )
+ SortInfo const * pSortInfo )
{
Reference < XRow > xRowOne( xResultOne, UNO_QUERY );
Reference < XRow > xRowTwo( xResultTwo, UNO_QUERY );
@@ -1122,8 +1122,8 @@ sal_IntPtr SortedResultSet::CompareImpl( const Reference < XResultSet >& xResult
}
-sal_IntPtr SortedResultSet::Compare( SortListData *pOne,
- SortListData *pTwo )
+sal_IntPtr SortedResultSet::Compare( SortListData const *pOne,
+ SortListData const *pTwo )
{
sal_IntPtr nIndexOne;
sal_IntPtr nIndexTwo;
@@ -1160,7 +1160,7 @@ sal_IntPtr SortedResultSet::Compare( SortListData *pOne,
}
-sal_IntPtr SortedResultSet::FindPos( SortListData *pEntry,
+sal_IntPtr SortedResultSet::FindPos( SortListData const *pEntry,
sal_IntPtr _nStart, sal_IntPtr _nEnd )
{
if ( _nStart > _nEnd )
diff --git a/ucb/source/sorter/sortresult.hxx b/ucb/source/sorter/sortresult.hxx
index 9547bb827e1a..80b6df0c566a 100644
--- a/ucb/source/sorter/sortresult.hxx
+++ b/ucb/source/sorter/sortresult.hxx
@@ -120,11 +120,11 @@ class SortedResultSet: public cppu::WeakImplHelper <
private:
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
- sal_IntPtr FindPos( SortListData *pEntry, sal_IntPtr nStart, sal_IntPtr nEnd );
+ sal_IntPtr FindPos( SortListData const *pEntry, sal_IntPtr nStart, sal_IntPtr nEnd );
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
- sal_IntPtr Compare( SortListData *pOne,
- SortListData *pTwo );
+ sal_IntPtr Compare( SortListData const *pOne,
+ SortListData const *pTwo );
void BuildSortInfo( const css::uno::Reference< css::sdbc::XResultSet >& aResult,
const css::uno::Sequence < css::ucb::NumberedSortingInfo > &xSortInfo,
const css::uno::Reference< css::ucb::XAnyCompareFactory > &xCompFac );
@@ -133,7 +133,7 @@ private:
static sal_IntPtr CompareImpl( const css::uno::Reference < css::sdbc::XResultSet >& xResultOne,
const css::uno::Reference < css::sdbc::XResultSet >& xResultTwo,
sal_IntPtr nIndexOne, sal_IntPtr nIndexTwo,
- SortInfo* pSortInfo );
+ SortInfo const * pSortInfo );
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
sal_IntPtr CompareImpl( const css::uno::Reference < css::sdbc::XResultSet >& xResultOne,