summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2022-06-23 16:00:50 +0200
committerLuboš Luňák <l.lunak@collabora.com>2022-06-23 21:37:54 +0200
commitb901fd3b27191d5565376c5a708da43a2ac0f6ee (patch)
treedbffa4c8abf0fef9bfeff3a3d5b71edd03679274 /sc/inc
parentd4eee72ea39f02ad8a63a592feb3553771bf9bbe (diff)
no need to explicitly spell out bodies of default functions
Change-Id: I7ed48c3f1005a0efe42d5378ed25e57ae63dd712 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136346 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/scmatrix.hxx16
1 files changed, 2 insertions, 14 deletions
diff --git a/sc/inc/scmatrix.hxx b/sc/inc/scmatrix.hxx
index 9026288c55cf..fdb870f40a1d 100644
--- a/sc/inc/scmatrix.hxx
+++ b/sc/inc/scmatrix.hxx
@@ -65,9 +65,8 @@ struct ScMatrixValue
bool GetBoolean() const { return fVal != 0.0; }
ScMatrixValue() : fVal(0.0), nType(ScMatValType::Empty) {}
-
- ScMatrixValue(const ScMatrixValue& r) :
- fVal(r.fVal), aStr(r.aStr), nType(r.nType) {}
+ ScMatrixValue(const ScMatrixValue& r) = default;
+ ScMatrixValue& operator= (const ScMatrixValue& r) = default;
bool operator== (const ScMatrixValue& r) const
{
@@ -91,17 +90,6 @@ struct ScMatrixValue
{
return !operator==(r);
}
-
- ScMatrixValue& operator= (const ScMatrixValue& r)
- {
- if (this == &r)
- return *this;
-
- nType = r.nType;
- fVal = r.fVal;
- aStr = r.aStr;
- return *this;
- }
};
/**