[Libreoffice-commits] core.git: sw/source

Michaël Lefèvre lefevre00 at yahoo.fr
Tue Nov 18 02:34:03 PST 2014


 sw/source/core/layout/paintfrm.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 612a5f54015eedf832ce1d0ff9062ba819976ea6
Author: Michaël Lefèvre <lefevre00 at yahoo.fr>
Date:   Sun Nov 16 12:10:28 2014 +0100

    Make const variables const
    
    Change-Id: Ib29fa559028327ffb8835daf271da0769fecaa2a
    Reviewed-on: https://gerrit.libreoffice.org/12478
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index bd691d5..a5b5d73 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -246,8 +246,8 @@ static long nMinDistPixelW = 0, nMinDistPixelH = 0;
 // Current zoom factor
 static double aScaleX = 1.0;
 static double aScaleY = 1.0;
-static double aMinDistScale = 0.73;
-static double aEdgeScale = 0.5;
+const static double aMinDistScale = 0.73;
+const static double aEdgeScale = 0.5;
 
 // The borders will be collected in pLines during the Paint and later
 // possibly merge them.
@@ -420,8 +420,6 @@ SwSavePaintStatics::SwSavePaintStatics()
     nHalfPixelSzW = nHalfPixelSzH =
     nMinDistPixelW = nMinDistPixelH = 0;
     aScaleX = aScaleY = 1.0;
-    aMinDistScale = 0.73;
-    aEdgeScale = 0.5;
     g_pBorderLines = 0;
     pLines = 0;
     pSubsLines = 0;


More information about the Libreoffice-commits mailing list