summaryrefslogtreecommitdiff
path: root/sot/inc
diff options
context:
space:
mode:
Diffstat (limited to 'sot/inc')
-rw-r--r--sot/inc/sot/object.hxx15
1 files changed, 5 insertions, 10 deletions
diff --git a/sot/inc/sot/object.hxx b/sot/inc/sot/object.hxx
index 239a4cd69d63..2e97cc23ae38 100644
--- a/sot/inc/sot/object.hxx
+++ b/sot/inc/sot/object.hxx
@@ -66,8 +66,7 @@ SotFactory * ClassName::ClassFactory() \
if( !*ppFactory ) \
{ \
*ppFactory = new FactoryName( GlobalName, \
- String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( #ClassName ) ), \
- ClassName::CreateInstance ); \
+ rtl::OUString( #ClassName ), ClassName::CreateInstance ); \
} \
return *ppFactory; \
} \
@@ -103,8 +102,7 @@ SotFactory * ClassName::ClassFactory() \
if( !*ppFactory ) \
{ \
*ppFactory = new FactoryName( GlobalName, \
- String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( #ClassName ) ), \
- ClassName::CreateInstance ); \
+ rtl::OUString( #ClassName ), ClassName::CreateInstance ); \
(*ppFactory)->PutSuperClass( Super1::ClassFactory() ); \
} \
return *ppFactory; \
@@ -145,8 +143,7 @@ SotFactory * ClassName::ClassFactory() \
if( !*ppFactory ) \
{ \
*ppFactory = new FactoryName( GlobalName, \
- String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( #ClassName ) ), \
- ClassName::CreateInstance ); \
+ rtl::OUString( #ClassName ), ClassName::CreateInstance ); \
(*ppFactory)->PutSuperClass( Super1::ClassFactory() ); \
(*ppFactory)->PutSuperClass( Super2::ClassFactory() ); \
} \
@@ -187,8 +184,7 @@ SotFactory * ClassName::ClassFactory() \
if( !*ppFactory ) \
{ \
*ppFactory = new FactoryName( GlobalName, \
- String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( #ClassName ) ), \
- ClassName::CreateInstance );\
+ rtl::OUString( #ClassName ), ClassName::CreateInstance ); \
(*ppFactory)->PutSuperClass( Super1::ClassFactory() ); \
(*ppFactory)->PutSuperClass( Super2::ClassFactory() ); \
(*ppFactory)->PutSuperClass( Super3::ClassFactory() ); \
@@ -233,8 +229,7 @@ SotFactory * ClassName::ClassFactory() \
if( !*ppFactory ) \
{ \
*ppFactory = new SotFactory( GlobalName, \
- String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( #ClassName ) ), \
- ClassName::CreateInstance );\
+ rtl::OUString( #ClassName ), ClassName::CreateInstance ); \
(*ppFactory)->PutSuperClass( Super1::ClassFactory() ); \
(*ppFactory)->PutSuperClass( Super2::ClassFactory() ); \
(*ppFactory)->PutSuperClass( Super3::ClassFactory() ); \