summaryrefslogtreecommitdiff
path: root/oox/source/export/SchXMLSeriesHelper.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-06-01 17:19:58 +0100
committerMichael Meeks <michael.meeks@suse.com>2012-06-01 17:40:03 +0100
commitff43ad1a77a89d1d1ebc0c20807bb9ec508fc9fd (patch)
treedaca69d3fceb0a7ec682360418033cf0126a6e95 /oox/source/export/SchXMLSeriesHelper.cxx
parentfcc31f1749e01e4184c4347929a9e1d7e782dee1 (diff)
targetted string cleanup
Change-Id: Iaf77bb427d62d7f3be00a96cba4dfb25a01934ac
Diffstat (limited to 'oox/source/export/SchXMLSeriesHelper.cxx')
-rw-r--r--oox/source/export/SchXMLSeriesHelper.cxx14
1 files changed, 5 insertions, 9 deletions
diff --git a/oox/source/export/SchXMLSeriesHelper.cxx b/oox/source/export/SchXMLSeriesHelper.cxx
index 509c1217b2e3..310566c580dd 100644
--- a/oox/source/export/SchXMLSeriesHelper.cxx
+++ b/oox/source/export/SchXMLSeriesHelper.cxx
@@ -34,7 +34,6 @@
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
-// header for define RTL_CONSTASCII_USTRINGPARAM
#include <rtl/ustring.h>
// header for define DBG_ERROR1
#include <tools/debug.hxx>
@@ -80,12 +79,9 @@ using ::rtl::OUString;
{
(void)ex; // avoid warning for pro build
- OSL_FAIL( OUStringToOString( OUString(
- OUString( RTL_CONSTASCII_USTRINGPARAM( "Exception caught. Type: " )) +
- OUString::createFromAscii( typeid( ex ).name()) +
- OUString( RTL_CONSTASCII_USTRINGPARAM( ", Message: " )) +
- ex.Message), RTL_TEXTENCODING_ASCII_US ).getStr());
-
+ OSL_FAIL( OUStringToOString( "Exception caught. Type: " +
+ OUString::createFromAscii( typeid( ex ).name() ) +
+ ", Message: " + ex.Message, RTL_TEXTENCODING_ASCII_US ).getStr());
}
return aResult;
@@ -202,7 +198,7 @@ uno::Reference< beans::XPropertySet > SchXMLSeriesHelper::createOldAPISeriesProp
if( xFactory.is() )
{
xRet = uno::Reference< beans::XPropertySet >( xFactory->createInstance(
- OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.chart2.DataSeriesWrapper")) ), uno::UNO_QUERY );
+ "com.sun.star.comp.chart2.DataSeriesWrapper" ), uno::UNO_QUERY );
Reference< lang::XInitialization > xInit( xRet, uno::UNO_QUERY );
if(xInit.is())
{
@@ -239,7 +235,7 @@ uno::Reference< beans::XPropertySet > SchXMLSeriesHelper::createOldAPIDataPointP
if( xFactory.is() )
{
xRet = uno::Reference< beans::XPropertySet >( xFactory->createInstance(
- OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.chart2.DataSeriesWrapper")) ), uno::UNO_QUERY );
+ "com.sun.star.comp.chart2.DataSeriesWrapper" ), uno::UNO_QUERY );
Reference< lang::XInitialization > xInit( xRet, uno::UNO_QUERY );
if(xInit.is())
{