Author: hdu
Date: Mon Nov 18 09:42:46 2013
New Revision: 1542958

URL: http://svn.apache.org/r1542958
Log:
#i123693# WaE: const type qualifier ignored on return value

this fix removes almost 120 compile warnings during the AOO build

Modified:
    openoffice/trunk/main/svl/inc/svl/zformat.hxx
    openoffice/trunk/main/svl/source/numbers/zformat.cxx

Modified: openoffice/trunk/main/svl/inc/svl/zformat.hxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/svl/inc/svl/zformat.hxx?rev=1542958&r1=1542957&r2=1542958&view=diff
==============================================================================
--- openoffice/trunk/main/svl/inc/svl/zformat.hxx (original)
+++ openoffice/trunk/main/svl/inc/svl/zformat.hxx Mon Nov 18 09:42:46 2013
@@ -160,7 +160,7 @@ public:
     const SvNumberNatNum& GetNatNum() const { return aNatNum; }
 
     // check, if the format code contains a subformat for text
-    const bool HasTextFormatCode() const;
+    bool HasTextFormatCode() const;
 
 private:
     ImpSvNumberformatInfo aI;           // Hilfsstruct fuer die restlichen 
Infos
@@ -336,7 +336,7 @@ public:
     sal_Bool HasNewCurrency() const;
 
     // check, if the format code contains a subformat for text
-    const bool HasTextFormatCode() const;
+    bool HasTextFormatCode() const;
 
     // Build string from NewCurrency for saving it SO50 compatible
     void Build50Formatstring( String& rStr ) const;

Modified: openoffice/trunk/main/svl/source/numbers/zformat.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/svl/source/numbers/zformat.cxx?rev=1542958&r1=1542957&r2=1542958&view=diff
==============================================================================
--- openoffice/trunk/main/svl/source/numbers/zformat.cxx (original)
+++ openoffice/trunk/main/svl/source/numbers/zformat.cxx Mon Nov 18 09:42:46 
2013
@@ -406,7 +406,7 @@ sal_Bool ImpSvNumFor::HasNewCurrency() c
     return sal_False;
 }
 
-const bool ImpSvNumFor::HasTextFormatCode() const
+bool ImpSvNumFor::HasTextFormatCode() const
 {
     return aI.eScannedType == NUMBERFORMAT_TEXT;
 }
@@ -1722,7 +1722,7 @@ sal_Bool SvNumberformat::HasNewCurrency(
     return sal_False;
 }
 
-const bool SvNumberformat::HasTextFormatCode() const
+bool SvNumberformat::HasTextFormatCode() const
 {
     for ( sal_uInt16 j=0; j<4; j++ )
     {


Reply via email to