[Libreoffice-commits] .: sc/source

Julien Nabet serval2412 at kemper.freedesktop.org
Wed Dec 28 13:27:35 PST 2011


 sc/source/core/tool/viewopti.cxx |    2 --
 1 file changed, 2 deletions(-)

New commits:
commit 86f08de96f4680938444a090912c85e4d23507e8
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Wed Dec 28 22:25:56 2011 +0100

    Same expression for comparison and for assignment

diff --git a/sc/source/core/tool/viewopti.cxx b/sc/source/core/tool/viewopti.cxx
index c5e5c7b..4de68ce 100644
--- a/sc/source/core/tool/viewopti.cxx
+++ b/sc/source/core/tool/viewopti.cxx
@@ -90,7 +90,6 @@ void ScGridOptions::SetDefaults()
 const ScGridOptions& ScGridOptions::operator=( const ScGridOptions& rCpy )
 {
     nFldDrawX       = rCpy.nFldDrawX;       // UINT32
-    nFldDrawX       = rCpy.nFldDrawX;
     nFldDivisionX   = rCpy.nFldDivisionX;
     nFldDrawY       = rCpy.nFldDrawY;
     nFldDivisionY   = rCpy.nFldDivisionY;
@@ -109,7 +108,6 @@ const ScGridOptions& ScGridOptions::operator=( const ScGridOptions& rCpy )
 int ScGridOptions::operator==( const ScGridOptions& rCpy ) const
 {
     return (   nFldDrawX        == rCpy.nFldDrawX
-            && nFldDrawX        == rCpy.nFldDrawX
             && nFldDivisionX    == rCpy.nFldDivisionX
             && nFldDrawY        == rCpy.nFldDrawY
             && nFldDivisionY    == rCpy.nFldDivisionY


More information about the Libreoffice-commits mailing list