summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-19 12:47:50 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-20 07:55:30 +0000
commit8a2149c1059c70d67b4897e8a7751cf028a5136b (patch)
tree10d01599b5b5b2ea1d361c32d438cf47371f21ae /filter
parent1b89a57aa5ac4faf59bc1e13eb1e0cad9933bacc (diff)
clang-tidy misc-assign-operator-signature
Change-Id: I2953a88d9e2f5923732865ef17615d5928ac5f5f Reviewed-on: https://gerrit.libreoffice.org/25154 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/graphicfilter/icgm/bundles.cxx14
-rw-r--r--filter/source/graphicfilter/icgm/bundles.hxx14
-rw-r--r--filter/source/graphicfilter/icgm/elements.cxx4
-rw-r--r--filter/source/graphicfilter/icgm/elements.hxx4
-rw-r--r--filter/source/msfilter/svdfppt.cxx2
5 files changed, 19 insertions, 19 deletions
diff --git a/filter/source/graphicfilter/icgm/bundles.cxx b/filter/source/graphicfilter/icgm/bundles.cxx
index a81f6db4c2d4..8381afde0db3 100644
--- a/filter/source/graphicfilter/icgm/bundles.cxx
+++ b/filter/source/graphicfilter/icgm/bundles.cxx
@@ -23,7 +23,7 @@
#include <tools/stream.hxx>
#include <memory>
-Bundle& Bundle::operator=( Bundle& rSource )
+Bundle& Bundle::operator=( const Bundle& rSource )
{
mnColor = rSource.mnColor;
mnBundleIndex = rSource.mnBundleIndex;
@@ -37,7 +37,7 @@ void Bundle::SetColor( sal_uInt32 nColor )
}
-LineBundle& LineBundle::operator=( LineBundle& rSource )
+LineBundle& LineBundle::operator=( const LineBundle& rSource )
{
SetIndex( rSource.GetIndex() );
eLineType = rSource.eLineType;
@@ -45,7 +45,7 @@ LineBundle& LineBundle::operator=( LineBundle& rSource )
return *this;
};
-MarkerBundle& MarkerBundle::operator=( MarkerBundle& rSource )
+MarkerBundle& MarkerBundle::operator=( const MarkerBundle& rSource )
{
SetIndex( rSource.GetIndex() );
eMarkerType = rSource.eMarkerType;
@@ -53,7 +53,7 @@ MarkerBundle& MarkerBundle::operator=( MarkerBundle& rSource )
return *this;
};
-EdgeBundle& EdgeBundle::operator=( EdgeBundle& rSource )
+EdgeBundle& EdgeBundle::operator=( const EdgeBundle& rSource )
{
SetIndex( rSource.GetIndex() );
eEdgeType = rSource.eEdgeType;
@@ -61,7 +61,7 @@ EdgeBundle& EdgeBundle::operator=( EdgeBundle& rSource )
return *this;
};
-TextBundle& TextBundle::operator=( TextBundle& rSource )
+TextBundle& TextBundle::operator=( const TextBundle& rSource )
{
SetIndex( rSource.GetIndex() );
nTextFontIndex = rSource.nTextFontIndex;
@@ -71,7 +71,7 @@ TextBundle& TextBundle::operator=( TextBundle& rSource )
return *this;
};
-FillBundle& FillBundle::operator=( FillBundle& rSource )
+FillBundle& FillBundle::operator=( const FillBundle& rSource )
{
SetIndex( rSource.GetIndex() );
eFillInteriorStyle = rSource.eFillInteriorStyle;
@@ -108,7 +108,7 @@ CGMFList::~CGMFList()
}
-CGMFList& CGMFList::operator=( CGMFList& rSource )
+CGMFList& CGMFList::operator=( const CGMFList& rSource )
{
ImplDeleteList();
nFontsAvailable = rSource.nFontsAvailable;
diff --git a/filter/source/graphicfilter/icgm/bundles.hxx b/filter/source/graphicfilter/icgm/bundles.hxx
index 2e6573f59ee2..abb8e0419c01 100644
--- a/filter/source/graphicfilter/icgm/bundles.hxx
+++ b/filter/source/graphicfilter/icgm/bundles.hxx
@@ -44,7 +44,7 @@ public:
{};
virtual Bundle* Clone() { return new Bundle( *this ); };
- Bundle& operator=( Bundle& rBundle );
+ Bundle& operator=(const Bundle& rBundle );
virtual ~Bundle() {} ;
};
@@ -63,7 +63,7 @@ public:
{}
virtual Bundle* Clone() override { return new LineBundle( *this ); }
- LineBundle& operator=( LineBundle& rLineBundle );
+ LineBundle& operator=( const LineBundle& rLineBundle );
};
@@ -80,7 +80,7 @@ public:
{};
virtual Bundle* Clone() override { return new MarkerBundle( *this ); } ;
- MarkerBundle& operator=( MarkerBundle& rMarkerBundle );
+ MarkerBundle& operator=( const MarkerBundle& rMarkerBundle );
virtual ~MarkerBundle() {};
};
@@ -97,7 +97,7 @@ public:
, nEdgeWidth(0)
{}
virtual Bundle* Clone() override { return new EdgeBundle( *this ); }
- EdgeBundle& operator=( EdgeBundle& rEdgeBundle );
+ EdgeBundle& operator=( const EdgeBundle& rEdgeBundle );
};
@@ -118,7 +118,7 @@ public:
{};
virtual Bundle* Clone() override { return new TextBundle( *this ); } ;
- TextBundle& operator=( TextBundle& rTextBundle );
+ TextBundle& operator=( const TextBundle& rTextBundle );
virtual ~TextBundle() {};
};
@@ -137,7 +137,7 @@ public:
, nFillHatchIndex(0)
{}
virtual Bundle* Clone() override { return new FillBundle( *this ); }
- FillBundle& operator=( FillBundle& rFillBundle );
+ FillBundle& operator=( const FillBundle& rFillBundle );
};
@@ -170,7 +170,7 @@ public:
FontEntry* GetFontEntry( sal_uInt32 );
void InsertName( sal_uInt8* pSource, sal_uInt32 nSize );
void InsertCharSet( CharSetType, sal_uInt8* pSource, sal_uInt32 nSize );
- CGMFList& operator=( CGMFList& rFontList );
+ CGMFList& operator=( const CGMFList& rFontList );
};
#endif
diff --git a/filter/source/graphicfilter/icgm/elements.cxx b/filter/source/graphicfilter/icgm/elements.cxx
index b548d93a1283..609128e11585 100644
--- a/filter/source/graphicfilter/icgm/elements.cxx
+++ b/filter/source/graphicfilter/icgm/elements.cxx
@@ -37,7 +37,7 @@ CGMElements::~CGMElements()
}
-CGMElements& CGMElements::operator=( CGMElements& rSource )
+CGMElements& CGMElements::operator=( const CGMElements& rSource )
{
sal_uInt32 nIndex;
@@ -299,7 +299,7 @@ void CGMElements::DeleteAllBundles( BundleList& rList )
};
-void CGMElements::CopyAllBundles( BundleList& rSource, BundleList& rDest )
+void CGMElements::CopyAllBundles( const BundleList& rSource, BundleList& rDest )
{
DeleteAllBundles( rDest );
diff --git a/filter/source/graphicfilter/icgm/elements.hxx b/filter/source/graphicfilter/icgm/elements.hxx
index b2a5fcdea52e..8356e0d6deb5 100644
--- a/filter/source/graphicfilter/icgm/elements.hxx
+++ b/filter/source/graphicfilter/icgm/elements.hxx
@@ -127,13 +127,13 @@ class CGMElements
bool bSegmentCount;
explicit CGMElements();
~CGMElements();
- CGMElements& operator=( CGMElements& );
+ CGMElements& operator=( const CGMElements& );
void Init();
static Bundle* GetBundleIndex( long nIndex, BundleList&, Bundle& );
static Bundle* GetBundle( BundleList& rList, long nIndex );
static Bundle* InsertBundle( BundleList&, Bundle& );
static void DeleteAllBundles( BundleList& );
- static void CopyAllBundles( BundleList& Source, BundleList& Dest );
+ static void CopyAllBundles( const BundleList& Source, BundleList& Dest );
};
#endif
diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx
index 8708a3306d04..9d23b39db224 100644
--- a/filter/source/msfilter/svdfppt.cxx
+++ b/filter/source/msfilter/svdfppt.cxx
@@ -4395,7 +4395,7 @@ PPTParaPropSet::~PPTParaPropSet()
delete pParaSet;
}
-PPTParaPropSet& PPTParaPropSet::operator=( PPTParaPropSet& rParaPropSet )
+PPTParaPropSet& PPTParaPropSet::operator=( const PPTParaPropSet& rParaPropSet )
{
if ( this != &rParaPropSet )
{