sc/source/core/tool/viewopti.cxx |   14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

New commits:
commit 34b034f70f026d526d5f46db2c9498baacd51c49
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Wed Sep 16 10:46:27 2020 +0200
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Wed Sep 16 12:03:37 2020 +0200

    The default implementation can be used
    
    Change-Id: Iaae5e3f7eeb7bde3ef6763cd3b0d2992ef999712
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102758
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/sc/source/core/tool/viewopti.cxx b/sc/source/core/tool/viewopti.cxx
index 192d6c61f1bf..6db6e9b73d9b 100644
--- a/sc/source/core/tool/viewopti.cxx
+++ b/sc/source/core/tool/viewopti.cxx
@@ -126,19 +126,7 @@ Color const & ScViewOptions::GetGridColor( OUString* 
pStrName ) const
     return aGridCol;
 }
 
-ScViewOptions& ScViewOptions::operator=( const ScViewOptions& rCpy )
-{
-    sal_uInt16 i;
-
-    for ( i=0; i<MAX_OPT; i++ )  aOptArr [i] = rCpy.aOptArr[i];
-    for ( i=0; i<MAX_TYPE; i++ ) aModeArr[i] = rCpy.aModeArr[i];
-
-    aGridCol        = rCpy.aGridCol;
-    aGridColName    = rCpy.aGridColName;
-    aGridOpt        = rCpy.aGridOpt;
-
-    return *this;
-}
+ScViewOptions& ScViewOptions::operator=(const ScViewOptions& rCpy) = default;
 
 bool ScViewOptions::operator==( const ScViewOptions& rOpt ) const
 {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to