diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-13 15:06:54 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-01-14 08:50:44 +0200 |
commit | d6318214908b088f8820033f62c47fbc4821c3a1 (patch) | |
tree | 156ee4efb624aff31ca64f58f06da1346aad8ca1 /svx/source/table | |
parent | 5adcc4f6da434af9b6baeba06699321ceaa15478 (diff) |
loplugin:unusedmethods unused return value in svx
Change-Id: I15a87da20487ce031c6aab2f3df0b18fd3e4c249
Diffstat (limited to 'svx/source/table')
-rw-r--r-- | svx/source/table/accessiblecell.cxx | 6 | ||||
-rw-r--r-- | svx/source/table/accessiblecell.hxx | 2 | ||||
-rw-r--r-- | svx/source/table/svdotable.cxx | 11 | ||||
-rw-r--r-- | svx/source/table/tablertfexporter.cxx | 5 |
4 files changed, 5 insertions, 19 deletions
diff --git a/svx/source/table/accessiblecell.cxx b/svx/source/table/accessiblecell.cxx index 0aec0e7a8a45..af68170477a2 100644 --- a/svx/source/table/accessiblecell.cxx +++ b/svx/source/table/accessiblecell.cxx @@ -135,12 +135,6 @@ bool AccessibleCell::ResetState (sal_Int16 aState) -bool AccessibleCell::operator== (const AccessibleCell& rAccessibleCell) -{ - return this == &rAccessibleCell; -} - - // XInterface diff --git a/svx/source/table/accessiblecell.hxx b/svx/source/table/accessiblecell.hxx index 12e61c36d00a..edc8e8fc2c23 100644 --- a/svx/source/table/accessiblecell.hxx +++ b/svx/source/table/accessiblecell.hxx @@ -56,8 +56,6 @@ public: void Init(); - bool operator== (const AccessibleCell& rAccessibleCell); - virtual bool SetState (sal_Int16 aState) override; virtual bool ResetState (sal_Int16 aState) override; diff --git a/svx/source/table/svdotable.cxx b/svx/source/table/svdotable.cxx index 4f575d75a40c..b54e4150543b 100644 --- a/svx/source/table/svdotable.cxx +++ b/svx/source/table/svdotable.cxx @@ -211,7 +211,7 @@ public: CellRef getCell( const CellPos& rPos ) const; void LayoutTable( Rectangle& rArea, bool bFitWidth, bool bFitHeight ); - bool ApplyCellStyles(); + void ApplyCellStyles(); void UpdateCells( Rectangle& rArea ); SdrTableObjImpl(); @@ -366,12 +366,10 @@ void SdrTableObjImpl::SetModel(SdrModel* /*pOldModel*/, SdrModel* pNewModel) -bool SdrTableObjImpl::ApplyCellStyles() +void SdrTableObjImpl::ApplyCellStyles() { if( !mxTable.is() || !mxTableStyle.is() ) - return false; - - bool bChanges = false; + return; const sal_Int32 nColCount = getColumnCount(); const sal_Int32 nRowCount = getRowCount(); @@ -451,15 +449,12 @@ bool SdrTableObjImpl::ApplyCellStyles() CellRef xCell( getCell( aPos ) ); if( xCell.is() && ( xCell->GetStyleSheet() != pStyle ) ) { - bChanges = true; xCell->SetStyleSheet( pStyle, true ); } } } } } - - return bChanges; } diff --git a/svx/source/table/tablertfexporter.cxx b/svx/source/table/tablertfexporter.cxx index 616aa6c23625..854d0bf630ed 100644 --- a/svx/source/table/tablertfexporter.cxx +++ b/svx/source/table/tablertfexporter.cxx @@ -52,7 +52,7 @@ class SdrTableRtfExporter { public: SdrTableRtfExporter( SvStream& rStrmP, SdrTableObj& rObj ); - sal_uLong Write(); + void Write(); void WriteRow( const Reference< XPropertySet >& xRowSet, sal_Int32 nRow, const std::vector< sal_Int32 >& aColumnStart ); void WriteCell( sal_Int32 nCol, sal_Int32 nRow ); @@ -83,7 +83,7 @@ long HundMMToTwips( long nIn ) return nRet; } -sal_uLong SdrTableRtfExporter::Write() +void SdrTableRtfExporter::Write() { mrStrm.WriteChar( '{' ).WriteCharPtr( OOO_STRING_SVTOOLS_RTF_RTF ); mrStrm.WriteCharPtr( OOO_STRING_SVTOOLS_RTF_ANSI ).WriteCharPtr( SAL_NEWLINE_STRING ); @@ -126,7 +126,6 @@ sal_uLong SdrTableRtfExporter::Write() } mrStrm.WriteChar( '}' ).WriteCharPtr( SAL_NEWLINE_STRING ); - return mrStrm.GetError(); } void SdrTableRtfExporter::WriteRow( const Reference< XPropertySet >& xRowSet, sal_Int32 nRow, const std::vector< sal_Int32 >& aColumnStart ) |