summaryrefslogtreecommitdiff
path: root/cppu
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-10-27 20:42:59 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-10-28 08:52:45 +0200
commit3b4a32972e49826334887e67b173ff2dae5b0801 (patch)
tree266b59e35db8b75f41fdb2fe87928583a2ad55a7 /cppu
parent954699acbdbbbed5c254f672eb6596a3a4cdc24e (diff)
Use OUString ctor instead of rtl_uString_newFromAscii
Change-Id: I84ea23c4de5c631fe7d0104944b0b8f0f13abb26
Diffstat (limited to 'cppu')
-rw-r--r--cppu/source/typelib/typelib.cxx47
1 files changed, 15 insertions, 32 deletions
diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx
index a5b497c10bf9..963787aa2f54 100644
--- a/cppu/source/typelib/typelib.cxx
+++ b/cppu/source/typelib/typelib.cxx
@@ -1874,55 +1874,38 @@ extern "C" void SAL_CALL typelib_typedescription_getByName(
// avoid recursion during the next ...new calls
bInited = true;
- rtl_uString * pTypeName = nullptr;
typelib_TypeDescription * pType = nullptr;
- rtl_uString_newFromAscii( &pTypeName, "type" );
- typelib_typedescription_new( &pType, typelib_TypeClass_TYPE, pTypeName, nullptr, 0, nullptr );
+ typelib_typedescription_new( &pType, typelib_TypeClass_TYPE, OUString("type").pData, nullptr, 0, nullptr );
typelib_typedescription_register( &pType );
- rtl_uString_newFromAscii( &pTypeName, "void" );
- typelib_typedescription_new( &pType, typelib_TypeClass_VOID, pTypeName, nullptr, 0, nullptr );
+ typelib_typedescription_new( &pType, typelib_TypeClass_VOID, OUString("void").pData, nullptr, 0, nullptr );
typelib_typedescription_register( &pType );
- rtl_uString_newFromAscii( &pTypeName, "boolean" );
- typelib_typedescription_new( &pType, typelib_TypeClass_BOOLEAN, pTypeName, nullptr, 0, nullptr );
+ typelib_typedescription_new( &pType, typelib_TypeClass_BOOLEAN, OUString("boolean").pData, nullptr, 0, nullptr );
typelib_typedescription_register( &pType );
- rtl_uString_newFromAscii( &pTypeName, "char" );
- typelib_typedescription_new( &pType, typelib_TypeClass_CHAR, pTypeName, nullptr, 0, nullptr );
+ typelib_typedescription_new( &pType, typelib_TypeClass_CHAR, OUString("char").pData, nullptr, 0, nullptr );
typelib_typedescription_register( &pType );
- rtl_uString_newFromAscii( &pTypeName, "byte" );
- typelib_typedescription_new( &pType, typelib_TypeClass_BYTE, pTypeName, nullptr, 0, nullptr );
+ typelib_typedescription_new( &pType, typelib_TypeClass_BYTE, OUString("byte").pData, nullptr, 0, nullptr );
typelib_typedescription_register( &pType );
- rtl_uString_newFromAscii( &pTypeName, "string" );
- typelib_typedescription_new( &pType, typelib_TypeClass_STRING, pTypeName, nullptr, 0, nullptr );
+ typelib_typedescription_new( &pType, typelib_TypeClass_STRING, OUString("string").pData, nullptr, 0, nullptr );
typelib_typedescription_register( &pType );
- rtl_uString_newFromAscii( &pTypeName, "short" );
- typelib_typedescription_new( &pType, typelib_TypeClass_SHORT, pTypeName, nullptr, 0, nullptr );
+ typelib_typedescription_new( &pType, typelib_TypeClass_SHORT, OUString("short").pData, nullptr, 0, nullptr );
typelib_typedescription_register( &pType );
- rtl_uString_newFromAscii( &pTypeName, "unsigned short" );
- typelib_typedescription_new( &pType, typelib_TypeClass_UNSIGNED_SHORT, pTypeName, nullptr, 0, nullptr );
+ typelib_typedescription_new( &pType, typelib_TypeClass_UNSIGNED_SHORT, OUString("unsigned short").pData, nullptr, 0, nullptr );
typelib_typedescription_register( &pType );
- rtl_uString_newFromAscii( &pTypeName, "long" );
- typelib_typedescription_new( &pType, typelib_TypeClass_LONG, pTypeName, nullptr, 0, nullptr );
+ typelib_typedescription_new( &pType, typelib_TypeClass_LONG, OUString("long").pData, nullptr, 0, nullptr );
typelib_typedescription_register( &pType );
- rtl_uString_newFromAscii( &pTypeName, "unsigned long" );
- typelib_typedescription_new( &pType, typelib_TypeClass_UNSIGNED_LONG, pTypeName, nullptr, 0, nullptr );
+ typelib_typedescription_new( &pType, typelib_TypeClass_UNSIGNED_LONG, OUString("unsigned long").pData, nullptr, 0, nullptr );
typelib_typedescription_register( &pType );
- rtl_uString_newFromAscii( &pTypeName, "hyper" );
- typelib_typedescription_new( &pType, typelib_TypeClass_HYPER, pTypeName, nullptr, 0, nullptr );
+ typelib_typedescription_new( &pType, typelib_TypeClass_HYPER, OUString("hyper").pData, nullptr, 0, nullptr );
typelib_typedescription_register( &pType );
- rtl_uString_newFromAscii( &pTypeName, "unsigned hyper" );
- typelib_typedescription_new( &pType, typelib_TypeClass_UNSIGNED_HYPER, pTypeName, nullptr, 0, nullptr );
+ typelib_typedescription_new( &pType, typelib_TypeClass_UNSIGNED_HYPER, OUString("unsigned hyper").pData, nullptr, 0, nullptr );
typelib_typedescription_register( &pType );
- rtl_uString_newFromAscii( &pTypeName, "float" );
- typelib_typedescription_new( &pType, typelib_TypeClass_FLOAT, pTypeName, nullptr, 0, nullptr );
+ typelib_typedescription_new( &pType, typelib_TypeClass_FLOAT, OUString("float").pData, nullptr, 0, nullptr );
typelib_typedescription_register( &pType );
- rtl_uString_newFromAscii( &pTypeName, "double" );
- typelib_typedescription_new( &pType, typelib_TypeClass_DOUBLE, pTypeName, nullptr, 0, nullptr );
+ typelib_typedescription_new( &pType, typelib_TypeClass_DOUBLE, OUString("double").pData, nullptr, 0, nullptr );
typelib_typedescription_register( &pType );
- rtl_uString_newFromAscii( &pTypeName, "any" );
- typelib_typedescription_new( &pType, typelib_TypeClass_ANY, pTypeName, nullptr, 0, nullptr );
+ typelib_typedescription_new( &pType, typelib_TypeClass_ANY, OUString("any").pData, nullptr, 0, nullptr );
typelib_typedescription_register( &pType );
typelib_typedescription_release( pType );
- rtl_uString_release( pTypeName );
}
}