diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-06-08 17:14:34 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-06-08 17:14:34 +0200 |
commit | 4d49c9601c9b3e26a336e08e057d299895683480 (patch) | |
tree | 469e3c18c2167db45cffec0a21a99abda8406c54 /sc | |
parent | 46c7ecf760bbea6541507c319e8e722f9b4ec712 (diff) |
Let loplugin:passstuffbyref also look at fn defn not preceded by any decl
Change-Id: I752bc96d2d521d790e919283cabb14b6526626f4
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/dptabres.hxx | 2 | ||||
-rw-r--r-- | sc/source/core/data/bcaslot.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/namedlg/namemgrtable.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/unoobj/funcuno.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/vba/vbarange.cxx | 4 |
5 files changed, 7 insertions, 7 deletions
diff --git a/sc/inc/dptabres.hxx b/sc/inc/dptabres.hxx index 827171d32eda..4528c406d0da 100644 --- a/sc/inc/dptabres.hxx +++ b/sc/inc/dptabres.hxx @@ -220,7 +220,7 @@ class ScDPDataMember; struct MemberHashIndexFunc : public std::unary_function< const SCROW &, size_t > { - size_t operator() (const SCROW &rDataIndex) const { return rDataIndex; } + size_t operator() (SCROW rDataIndex) const { return rDataIndex; } }; struct ScDPParentDimData diff --git a/sc/source/core/data/bcaslot.cxx b/sc/source/core/data/bcaslot.cxx index 8d5e1bb24623..4a7548886b53 100644 --- a/sc/source/core/data/bcaslot.cxx +++ b/sc/source/core/data/bcaslot.cxx @@ -709,7 +709,7 @@ void ScBroadcastAreaSlotMachine::ComputeAreaPoints( const ScRange& rRange, } inline void ComputeNextSlot( SCSIZE & nOff, SCSIZE & nBreak, ScBroadcastAreaSlot** & pp, - SCSIZE & nStart, ScBroadcastAreaSlot** const & ppSlots, SCSIZE const & nRowBreak ) + SCSIZE & nStart, ScBroadcastAreaSlot** const & ppSlots, SCSIZE nRowBreak ) { if ( nOff < nBreak ) { diff --git a/sc/source/ui/namedlg/namemgrtable.cxx b/sc/source/ui/namedlg/namemgrtable.cxx index eedf33cca60d..c15a2b7da6e2 100644 --- a/sc/source/ui/namedlg/namemgrtable.cxx +++ b/sc/source/ui/namedlg/namemgrtable.cxx @@ -238,7 +238,7 @@ void ScRangeManagerTable::SetEntry(const ScRangeNameLine& rLine) namespace { //ensure that the minimum column size is respected -void CalculateItemSize(const long& rTableSize, long& rItemNameSize, long& rItemRangeSize) +void CalculateItemSize(long rTableSize, long& rItemNameSize, long& rItemRangeSize) { long aItemScopeSize = rTableSize - rItemNameSize - rItemRangeSize; diff --git a/sc/source/ui/unoobj/funcuno.cxx b/sc/source/ui/unoobj/funcuno.cxx index c5cb6d2a4791..24af4217a7ef 100644 --- a/sc/source/ui/unoobj/funcuno.cxx +++ b/sc/source/ui/unoobj/funcuno.cxx @@ -348,11 +348,11 @@ public: // the other types methods are here just to reflect the orig code and for // completeness. - void visitElem( long nCol, long nRow, const sal_Int16& elem ) + void visitElem( long nCol, long nRow, sal_Int16 elem ) { mpDoc->SetValue( (SCCOL) nCol, (SCROW) nRow, 0, elem ); } - void visitElem( long nCol, long nRow, const sal_Int32& elem ) + void visitElem( long nCol, long nRow, sal_Int32 elem ) { mpDoc->SetValue( (SCCOL) nCol, (SCROW) nRow, 0, elem ); } diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx index 95f1d2b4d0b4..c7ad99222ee2 100644 --- a/sc/source/ui/vba/vbarange.cxx +++ b/sc/source/ui/vba/vbarange.cxx @@ -2254,7 +2254,7 @@ ScVbaRange::Select() throw (uno::RuntimeException, std::exception) } } -bool cellInRange( const table::CellRangeAddress& rAddr, const sal_Int32& nCol, const sal_Int32& nRow ) +bool cellInRange( const table::CellRangeAddress& rAddr, sal_Int32 nCol, sal_Int32 nRow ) { if ( nCol >= rAddr.StartColumn && nCol <= rAddr.EndColumn && nRow >= rAddr.StartRow && nRow <= rAddr.EndRow ) @@ -2262,7 +2262,7 @@ bool cellInRange( const table::CellRangeAddress& rAddr, const sal_Int32& nCol, c return false; } -void setCursor( const SCCOL& nCol, const SCROW& nRow, const uno::Reference< frame::XModel >& xModel, bool bInSel = true ) +void setCursor( SCCOL nCol, SCROW nRow, const uno::Reference< frame::XModel >& xModel, bool bInSel = true ) { ScTabViewShell* pShell = excel::getBestViewShell( xModel ); if ( pShell ) |