summaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-01-18 10:39:48 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-01-18 12:50:09 +0000
commita7f6efc68ba97db98ebab9ebc473bffb8ded757f (patch)
treebad37ce9ee1c9f61f1c8541a9689ecdea8c84c08 /filter
parentfix android build (diff)
downloadcore-a7f6efc68ba97db98ebab9ebc473bffb8ded757f.tar.gz
core-a7f6efc68ba97db98ebab9ebc473bffb8ded757f.zip
loplugin: unused return values
Change-Id: I9c61a46c57894bc63a57740206c0bcb4a16553af Reviewed-on: https://gerrit.libreoffice.org/21571 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/graphicfilter/etiff/etiff.cxx7
-rw-r--r--filter/source/graphicfilter/idxf/dxfvec.hxx7
-rw-r--r--filter/source/svg/b2dellipse.cxx6
-rw-r--r--filter/source/svg/b2dellipse.hxx1
-rw-r--r--filter/source/svg/svgexport.cxx7
-rw-r--r--filter/source/svg/svgfilter.hxx1
6 files changed, 3 insertions, 26 deletions
diff --git a/filter/source/graphicfilter/etiff/etiff.cxx b/filter/source/graphicfilter/etiff/etiff.cxx
index 239c66d2c4e9..caee92ef46fc 100644
--- a/filter/source/graphicfilter/etiff/etiff.cxx
+++ b/filter/source/graphicfilter/etiff/etiff.cxx
@@ -95,9 +95,9 @@ private:
css::uno::Reference< css::task::XStatusIndicator > xStatusIndicator;
void ImplCallback( sal_uInt32 nPercent );
- bool ImplWriteHeader( bool bMultiPage );
+ bool ImplWriteHeader( bool bMultiPage );
void ImplWritePalette();
- bool ImplWriteBody();
+ void ImplWriteBody();
void ImplWriteTag( sal_uInt16 TagID, sal_uInt16 DataType, sal_uInt32 NumberOfItems, sal_uInt32 Value);
void ImplWriteResolution( sal_uLong nStreamPos, sal_uInt32 nResolutionUnit );
void StartCompression();
@@ -358,7 +358,7 @@ void TIFFWriter::ImplWritePalette()
-bool TIFFWriter::ImplWriteBody()
+void TIFFWriter::ImplWriteBody()
{
sal_uInt8 nTemp = 0;
sal_uInt8 nShift;
@@ -461,7 +461,6 @@ bool TIFFWriter::ImplWriteBody()
m_rOStm.WriteUInt32( nGfxEnd - nGfxBegin ); // mnStripByteCountPos needs the size of the compression data
m_rOStm.Seek( nGfxEnd );
}
- return mbStatus;
}
diff --git a/filter/source/graphicfilter/idxf/dxfvec.hxx b/filter/source/graphicfilter/idxf/dxfvec.hxx
index 94bf034729fb..21e63bc37262 100644
--- a/filter/source/graphicfilter/idxf/dxfvec.hxx
+++ b/filter/source/graphicfilter/idxf/dxfvec.hxx
@@ -94,7 +94,6 @@ public:
// equivalence or net:
bool operator == (const DXFVector & rV) const;
- bool operator != (const DXFVector & rV) const;
};
@@ -246,12 +245,6 @@ inline bool DXFVector::operator == (const DXFVector & rV) const
}
-inline bool DXFVector::operator != (const DXFVector & rV) const
-{
- if (fx!=rV.fx || fy!=rV.fy || fz!=rV.fz) return true;
- else return false;
-}
-
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/source/svg/b2dellipse.cxx b/filter/source/svg/b2dellipse.cxx
index 07799b583eba..4e4e1f04fa91 100644
--- a/filter/source/svg/b2dellipse.cxx
+++ b/filter/source/svg/b2dellipse.cxx
@@ -27,12 +27,6 @@ namespace basegfx
return (maCenter == rEllipse.maCenter) && (maRadius == rEllipse.maRadius);
}
- bool B2DEllipse::operator!=(const B2DEllipse& rEllipse) const
- {
- return !(*this == rEllipse);
- }
-
-
} // end of namespace basegfx
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/source/svg/b2dellipse.hxx b/filter/source/svg/b2dellipse.hxx
index 30e19d9a8570..45ad6f99ee59 100644
--- a/filter/source/svg/b2dellipse.hxx
+++ b/filter/source/svg/b2dellipse.hxx
@@ -42,7 +42,6 @@ namespace basegfx
// compare operators
bool operator==(const B2DEllipse& rEllipse) const;
- bool operator!=(const B2DEllipse& rEllipse) const;
// Coordinate interface
basegfx::B2DPoint getB2DEllipseCenter() const { return maCenter; }
diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx
index 794f5b01881e..ce4aeecfacfb 100644
--- a/filter/source/svg/svgexport.cxx
+++ b/filter/source/svg/svgexport.cxx
@@ -433,13 +433,6 @@ ObjectRepresentation& ObjectRepresentation::operator=( const ObjectRepresentatio
-bool ObjectRepresentation::operator==( const ObjectRepresentation& rPresentation ) const
-{
- return( ( mxObject == rPresentation.mxObject ) &&
- ( *mpMtf == *rPresentation.mpMtf ) );
-}
-
-
namespace
{
diff --git a/filter/source/svg/svgfilter.hxx b/filter/source/svg/svgfilter.hxx
index 89544adb79ae..fc929d65d0d8 100644
--- a/filter/source/svg/svgfilter.hxx
+++ b/filter/source/svg/svgfilter.hxx
@@ -141,7 +141,6 @@ public:
~ObjectRepresentation();
ObjectRepresentation& operator=( const ObjectRepresentation& rPresentation );
- bool operator==( const ObjectRepresentation& rPresentation ) const;
const Reference< XInterface >& GetObject() const { return mxObject; }
bool HasRepresentation() const { return mpMtf != nullptr; }