From 455e4011f7052c5d1fb4693a573e0998cf6badc8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 1 Nov 2017 15:54:13 +0200 Subject: 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 Reviewed-by: Noel Grandin --- ucb/source/sorter/sortresult.cxx | 8 ++++---- ucb/source/sorter/sortresult.hxx | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'ucb/source') 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, -- cgit v1.2.3