[Libreoffice-commits] .: sw/source

Tor Lillqvist tml at kemper.freedesktop.org
Wed Mar 7 01:03:19 PST 2012


 sw/source/filter/ww8/ww8par3.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7fd4640469ce0cc3211a38393c7f25bd2deecd87
Author: Tor Lillqvist <tlillqvist at suse.com>
Date:   Wed Mar 7 11:02:59 2012 +0200

    Fix MSVC compilation error: can't assign a const char* to String

diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx
index f6bed3c..a2c7290 100644
--- a/sw/source/filter/ww8/ww8par3.cxx
+++ b/sw/source/filter/ww8/ww8par3.cxx
@@ -2183,7 +2183,7 @@ void WW8FormulaControl::FormulaRead(SwWw8ControlType nWhich,
         {
             if ( iRes != 25 )
                 nChecked = iRes;
-            sDefault = ( wDef == 0 ) ? "0" : "1";
+            sDefault = ( wDef == 0 ) ? rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("0") ) :  rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("1") );
         }
     }
     // xstzTextFormat


More information about the Libreoffice-commits mailing list