summaryrefslogtreecommitdiff
path: root/sc
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 /sc
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 'sc')
-rw-r--r--sc/inc/appoptio.hxx2
-rw-r--r--sc/inc/inputopt.hxx2
-rw-r--r--sc/inc/printopt.hxx2
-rw-r--r--sc/inc/sheetevents.hxx2
-rw-r--r--sc/inc/viewopti.hxx4
-rw-r--r--sc/source/core/data/sheetevents.cxx2
-rw-r--r--sc/source/core/tool/appoptio.cxx2
-rw-r--r--sc/source/core/tool/inputopt.cxx2
-rw-r--r--sc/source/core/tool/printopt.cxx2
-rw-r--r--sc/source/core/tool/viewopti.cxx4
-rw-r--r--sc/source/ui/inc/printfun.hxx2
-rw-r--r--sc/source/ui/view/printfun.cxx2
12 files changed, 14 insertions, 14 deletions
diff --git a/sc/inc/appoptio.hxx b/sc/inc/appoptio.hxx
index a3fc72406f9e..59f6255b0bce 100644
--- a/sc/inc/appoptio.hxx
+++ b/sc/inc/appoptio.hxx
@@ -78,7 +78,7 @@ public:
ScOptionsUtil::KeyBindingType GetKeyBindingType() const { return meKeyBindingType; }
void SetKeyBindingType( ScOptionsUtil::KeyBindingType e ) { meKeyBindingType = e; }
- const ScAppOptions& operator= ( const ScAppOptions& rOpt );
+ ScAppOptions& operator= ( const ScAppOptions& rOpt );
private:
FieldUnit eMetric;
diff --git a/sc/inc/inputopt.hxx b/sc/inc/inputopt.hxx
index 3536109a9682..7f95380c9942 100644
--- a/sc/inc/inputopt.hxx
+++ b/sc/inc/inputopt.hxx
@@ -71,7 +71,7 @@ public:
void SetLegacyCellSelection(bool bSet) { bLegacyCellSelection = bSet; }
bool GetLegacyCellSelection() const { return bLegacyCellSelection; }
- const ScInputOptions& operator= ( const ScInputOptions& rOpt );
+ ScInputOptions& operator= ( const ScInputOptions& rOpt );
};
// CfgItem for input options
diff --git a/sc/inc/printopt.hxx b/sc/inc/printopt.hxx
index baf68850a66d..bf8bef230d39 100644
--- a/sc/inc/printopt.hxx
+++ b/sc/inc/printopt.hxx
@@ -45,7 +45,7 @@ public:
void SetDefaults();
- const ScPrintOptions& operator= ( const ScPrintOptions& rCpy );
+ ScPrintOptions& operator= ( const ScPrintOptions& rCpy );
bool operator== ( const ScPrintOptions& rOpt ) const;
};
diff --git a/sc/inc/sheetevents.hxx b/sc/inc/sheetevents.hxx
index c9433607079c..267e442f25a3 100644
--- a/sc/inc/sheetevents.hxx
+++ b/sc/inc/sheetevents.hxx
@@ -38,7 +38,7 @@ public:
ScSheetEvents(const ScSheetEvents& rOther);
~ScSheetEvents();
- const ScSheetEvents& operator= (const ScSheetEvents& rOther);
+ ScSheetEvents& operator= (const ScSheetEvents& rOther);
const OUString* GetScript(ScSheetEventId nEvent) const;
void SetScript(ScSheetEventId nEvent, const OUString* pNew);
diff --git a/sc/inc/viewopti.hxx b/sc/inc/viewopti.hxx
index 892e52915f36..259653d1dc77 100644
--- a/sc/inc/viewopti.hxx
+++ b/sc/inc/viewopti.hxx
@@ -69,7 +69,7 @@ public:
ScGridOptions( const SvxOptionsGrid& rOpt ) : SvxOptionsGrid( rOpt ) {}
void SetDefaults();
- const ScGridOptions& operator= ( const ScGridOptions& rCpy );
+ ScGridOptions& operator= ( const ScGridOptions& rCpy );
bool operator== ( const ScGridOptions& rOpt ) const;
bool operator!= ( const ScGridOptions& rOpt ) const { return !(operator==(rOpt)); }
};
@@ -98,7 +98,7 @@ public:
void SetGridOptions( const ScGridOptions& rNew ) { aGridOpt = rNew; }
SvxGridItem* CreateGridItem() const;
- const ScViewOptions& operator= ( const ScViewOptions& rCpy );
+ ScViewOptions& operator= ( const ScViewOptions& rCpy );
bool operator== ( const ScViewOptions& rOpt ) const;
bool operator!= ( const ScViewOptions& rOpt ) const { return !(operator==(rOpt)); }
diff --git a/sc/source/core/data/sheetevents.cxx b/sc/source/core/data/sheetevents.cxx
index ddb893e69595..ba1d5f3c54ee 100644
--- a/sc/source/core/data/sheetevents.cxx
+++ b/sc/source/core/data/sheetevents.cxx
@@ -89,7 +89,7 @@ ScSheetEvents::ScSheetEvents(const ScSheetEvents& rOther) :
*this = rOther;
}
-const ScSheetEvents& ScSheetEvents::operator=(const ScSheetEvents& rOther)
+ScSheetEvents& ScSheetEvents::operator=(const ScSheetEvents& rOther)
{
Clear();
if (rOther.mpScriptNames)
diff --git a/sc/source/core/tool/appoptio.cxx b/sc/source/core/tool/appoptio.cxx
index b8c05ae13135..ff7319068412 100644
--- a/sc/source/core/tool/appoptio.cxx
+++ b/sc/source/core/tool/appoptio.cxx
@@ -89,7 +89,7 @@ void ScAppOptions::SetDefaults()
meKeyBindingType = ScOptionsUtil::KEY_DEFAULT;
}
-const ScAppOptions& ScAppOptions::operator=( const ScAppOptions& rCpy )
+ScAppOptions& ScAppOptions::operator=( const ScAppOptions& rCpy )
{
eMetric = rCpy.eMetric;
eZoomType = rCpy.eZoomType;
diff --git a/sc/source/core/tool/inputopt.cxx b/sc/source/core/tool/inputopt.cxx
index 9414e9fccba2..a1deae26b9e9 100644
--- a/sc/source/core/tool/inputopt.cxx
+++ b/sc/source/core/tool/inputopt.cxx
@@ -63,7 +63,7 @@ void ScInputOptions::SetDefaults()
bLegacyCellSelection = false;
}
-const ScInputOptions& ScInputOptions::operator=( const ScInputOptions& rCpy )
+ScInputOptions& ScInputOptions::operator=( const ScInputOptions& rCpy )
{
nMoveDir = rCpy.nMoveDir;
bMoveSelection = rCpy.bMoveSelection;
diff --git a/sc/source/core/tool/printopt.cxx b/sc/source/core/tool/printopt.cxx
index c71ad4655590..877a68a09748 100644
--- a/sc/source/core/tool/printopt.cxx
+++ b/sc/source/core/tool/printopt.cxx
@@ -51,7 +51,7 @@ void ScPrintOptions::SetDefaults()
bForceBreaks = false;
}
-const ScPrintOptions& ScPrintOptions::operator=( const ScPrintOptions& rCpy )
+ScPrintOptions& ScPrintOptions::operator=( const ScPrintOptions& rCpy )
{
bSkipEmpty = rCpy.bSkipEmpty;
bAllSheets = rCpy.bAllSheets;
diff --git a/sc/source/core/tool/viewopti.cxx b/sc/source/core/tool/viewopti.cxx
index dae7c42c060a..e7f49ba79ac8 100644
--- a/sc/source/core/tool/viewopti.cxx
+++ b/sc/source/core/tool/viewopti.cxx
@@ -62,7 +62,7 @@ void ScGridOptions::SetDefaults()
nFldDivisionY = 1;
}
-const ScGridOptions& ScGridOptions::operator=( const ScGridOptions& rCpy )
+ScGridOptions& ScGridOptions::operator=( const ScGridOptions& rCpy )
{
nFldDrawX = rCpy.nFldDrawX; // UINT32
nFldDivisionX = rCpy.nFldDivisionX;
@@ -144,7 +144,7 @@ Color ScViewOptions::GetGridColor( OUString* pStrName ) const
return aGridCol;
}
-const ScViewOptions& ScViewOptions::operator=( const ScViewOptions& rCpy )
+ScViewOptions& ScViewOptions::operator=( const ScViewOptions& rCpy )
{
sal_uInt16 i;
diff --git a/sc/source/ui/inc/printfun.hxx b/sc/source/ui/inc/printfun.hxx
index b30f34a6e920..000d58917ee9 100644
--- a/sc/source/ui/inc/printfun.hxx
+++ b/sc/source/ui/inc/printfun.hxx
@@ -110,7 +110,7 @@ public:
~ScPageRowEntry() { delete[] pHidden; }
ScPageRowEntry(const ScPageRowEntry& r);
- const ScPageRowEntry& operator=(const ScPageRowEntry& r);
+ ScPageRowEntry& operator=(const ScPageRowEntry& r);
SCROW GetStartRow() const { return nStartRow; }
SCROW GetEndRow() const { return nEndRow; }
diff --git a/sc/source/ui/view/printfun.cxx b/sc/source/ui/view/printfun.cxx
index 26851bc47b73..292b9d1de392 100644
--- a/sc/source/ui/view/printfun.cxx
+++ b/sc/source/ui/view/printfun.cxx
@@ -109,7 +109,7 @@ ScPageRowEntry::ScPageRowEntry(const ScPageRowEntry& r)
pHidden = nullptr;
}
-const ScPageRowEntry& ScPageRowEntry::operator=(const ScPageRowEntry& r)
+ScPageRowEntry& ScPageRowEntry::operator=(const ScPageRowEntry& r)
{
delete[] pHidden;