diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-06-26 15:07:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-27 13:32:01 +0200 |
commit | a679ae4c8782720379f70e9beed8f8d7eaebe58f (patch) | |
tree | b7cc95b0552dd3222e7eca75d4634485d269ddd5 | |
parent | b4f16b8ea466229c380dc39fd597fef34c6c0dee (diff) |
svtools: use implicit defined copy assignment
Change-Id: Iea061bbcf0bf6e894f1bb6028de75eb0f8e2c8f0
Reviewed-on: https://gerrit.libreoffice.org/39294
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | svtools/source/control/ruler.cxx | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx index a6687938cf6c..b50b96db4388 100644 --- a/svtools/source/control/ruler.cxx +++ b/svtools/source/control/ruler.cxx @@ -88,8 +88,6 @@ private: public: ImplRulerData(); - - ImplRulerData& operator=( const ImplRulerData& rData ); }; ImplRulerData::ImplRulerData() : @@ -110,69 +108,6 @@ ImplRulerData::ImplRulerData() : { } -ImplRulerData& ImplRulerData::operator=( const ImplRulerData& rData ) -{ - if( this == &rData ) - return *this; - - nNullVirOff = rData.nNullVirOff; - nRulVirOff = rData.nRulVirOff; - nRulWidth = rData.nRulWidth; - nPageOff = rData.nPageOff; - nPageWidth = rData.nPageWidth; - nNullOff = rData.nNullOff; - nMargin1 = rData.nMargin1; - nMargin2 = rData.nMargin2; - nLeftFrameMargin = rData.nLeftFrameMargin; - nRightFrameMargin = rData.nRightFrameMargin; - nMargin1Style = rData.nMargin1Style; - nMargin2Style = rData.nMargin2Style; - bAutoPageWidth = rData.bAutoPageWidth; - bTextRTL = rData.bTextRTL; - - if ( !rData.pLines.empty() ) - { - pLines.resize(rData.pLines.size()); - std::copy(rData.pLines.begin(), rData.pLines.end(), pLines.begin()); - } - else - { - pLines.clear(); - } - - if ( !rData.pBorders.empty() ) - { - pBorders.resize(rData.pBorders.size()); - std::copy(rData.pBorders.begin(), rData.pBorders.end(), pBorders.begin()); - } - else - { - pBorders.clear(); - } - - if ( !rData.pIndents.empty() ) - { - pIndents.resize(rData.pIndents.size()); - std::copy(rData.pIndents.begin(), rData.pIndents.end(), pIndents.begin()); - } - else - { - pIndents.clear(); - } - - if ( !rData.pTabs.empty() ) - { - pTabs.resize(rData.pTabs.size()); - std::copy(rData.pTabs.begin(), rData.pTabs.end(), pTabs.begin()); - } - else - { - pTabs.clear(); - } - - return *this; -} - static const RulerUnitData aImplRulerUnitTab[RULER_UNIT_COUNT] = { { MapUnit::Map100thMM, 100, 25.0, 25.0, 50.0, 100.0, " mm" }, // MM |