From 7fd4640469ce0cc3211a38393c7f25bd2deecd87 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 7 Mar 2012 11:02:59 +0200 Subject: [PATCH] Fix MSVC compilation error: can't assign a const char* to String --- sw/source/filter/ww8/ww8par3.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx index f6bed3cd8d89..a2c729083e22 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