diff options
Diffstat (limited to 'cli_ure/source/climaker')
-rw-r--r-- | cli_ure/source/climaker/climaker_app.cxx | 60 | ||||
-rw-r--r-- | cli_ure/source/climaker/climaker_emit.cxx | 18 | ||||
-rwxr-xr-x | cli_ure/source/climaker/climaker_share.h | 2 |
3 files changed, 39 insertions, 41 deletions
diff --git a/cli_ure/source/climaker/climaker_app.cxx b/cli_ure/source/climaker/climaker_app.cxx index 5294d93a97bf..151c7ab81889 100644 --- a/cli_ure/source/climaker/climaker_app.cxx +++ b/cli_ure/source/climaker/climaker_app.cxx @@ -238,14 +238,14 @@ static OUString path_make_absolute_file_url( OUString const & path ) else { throw RuntimeException( - OUSTR("cannot make absolute: ") + file_url, + "cannot make absolute: " + file_url, Reference< XInterface >() ); } } else { throw RuntimeException( - OUSTR("cannot get file url from system path: ") + path, + "cannot get file url from system path: " + path, Reference< XInterface >() ); } } @@ -258,7 +258,7 @@ Reference< registry::XSimpleRegistry > open_registries( if (registries.empty()) { throw RuntimeException( - OUSTR("no registries given!"), + "no registries given!", Reference< XInterface >() ); } @@ -267,13 +267,13 @@ Reference< registry::XSimpleRegistry > open_registries( { Reference< registry::XSimpleRegistry > xReg( xContext->getServiceManager()->createInstanceWithContext( - OUSTR("com.sun.star.registry.SimpleRegistry"), xContext ), + "com.sun.star.registry.SimpleRegistry", xContext ), UNO_QUERY_THROW ); xReg->open( registries[ nPos ], sal_True, sal_False ); if (! xReg->isValid()) { throw RuntimeException( - OUSTR("invalid registry: ") + registries[ nPos ], + "invalid registry: " + registries[ nPos ], Reference< XInterface >() ); } @@ -281,7 +281,7 @@ Reference< registry::XSimpleRegistry > open_registries( { Reference< registry::XSimpleRegistry > xNested( xContext->getServiceManager()->createInstanceWithContext( - OUSTR("com.sun.star.registry.NestedRegistry"), xContext ), + "com.sun.star.registry.NestedRegistry", xContext ), UNO_QUERY_THROW ); Reference< lang::XInitialization > xInit( xNested, UNO_QUERY_THROW ); @@ -320,33 +320,33 @@ SAL_IMPLEMENT_MAIN() try { OptionInfo const * info_help = - get_option_info( OUSTR("help") ); + get_option_info( "help" ); OptionInfo const * info_verbose = - get_option_info( OUSTR("verbose") ); + get_option_info( "verbose" ); OptionInfo const * info_out = - get_option_info( OUSTR("out") ); + get_option_info( "out" ); OptionInfo const * info_types = - get_option_info( OUSTR("types") ); + get_option_info( "types" ); OptionInfo const * info_reference = - get_option_info( OUSTR("reference") ); + get_option_info( "reference" ); OptionInfo const * info_extra = - get_option_info( OUSTR("extra") ); + get_option_info( "extra" ); OptionInfo const * info_keyfile = - get_option_info( OUSTR("keyfile") ); + get_option_info( "keyfile" ); OptionInfo const * info_delaySign = - get_option_info( OUSTR("delaySign") ); + get_option_info( "delaySign" ); OptionInfo const * info_version = - get_option_info( OUSTR("assembly-version") ); + get_option_info( "assembly-version" ); OptionInfo const * info_product = - get_option_info( OUSTR("assembly-product") ); + get_option_info( "assembly-product" ); OptionInfo const * info_description = - get_option_info( OUSTR("assembly-description") ); + get_option_info( "assembly-description" ); OptionInfo const * info_company = - get_option_info( OUSTR("assembly-company") ); + get_option_info( "assembly-company" ); OptionInfo const * info_copyright = - get_option_info( OUSTR("assembly-copyright") ); + get_option_info( "assembly-copyright" ); OptionInfo const * info_trademark = - get_option_info( OUSTR("assembly-trademark") ); + get_option_info( "assembly-trademark" ); OUString output; vector< OUString > mandatory_registries; @@ -455,23 +455,23 @@ SAL_IMPLEMENT_MAIN() xContext = ::cppu::defaultBootstrap_InitialComponentContext(); Reference< container::XHierarchicalNameAccess > xTDmgr( xContext->getValueByName( - OUSTR("/singletons/com.sun.star.reflection." - "theTypeDescriptionManager") ), + "/singletons/com.sun.star.reflection." + "theTypeDescriptionManager" ), UNO_QUERY_THROW ); // get rdb tdprovider factory Reference< lang::XSingleComponentFactory > xTDprov_factory( ::cppu::loadSharedLibComponentFactory( - OUSTR("bootstrap.uno" SAL_DLLEXTENSION), OUString(), - OUSTR("com.sun.star.comp.stoc.RegistryTypeDescriptionProvider"), + "bootstrap.uno" SAL_DLLEXTENSION, OUString(), + "com.sun.star.comp.stoc.RegistryTypeDescriptionProvider", Reference< lang::XMultiServiceFactory >( xContext->getServiceManager(), UNO_QUERY ), Reference< registry::XRegistryKey >() ), UNO_QUERY ); if (! xTDprov_factory.is()) { throw RuntimeException( - OUSTR("cannot get registry typedescription provider: " - "bootstrap.uno" SAL_DLLEXTENSION "!"), + "cannot get registry typedescription provider: " + "bootstrap.uno" SAL_DLLEXTENSION "!", Reference< XInterface >() ); } @@ -508,7 +508,7 @@ SAL_IMPLEMENT_MAIN() } else { - output = OUSTR("cli_unotypes"); + output = "cli_unotypes"; } } output = path_make_absolute_file_url( output ); @@ -518,7 +518,7 @@ SAL_IMPLEMENT_MAIN() output.copy( 0, slash ), sys_output_dir )) { throw RuntimeException( - OUSTR("cannot get system path from file url ") + + "cannot get system path from file url " + output.copy( 0, slash ), Reference< XInterface >() ); } @@ -526,7 +526,7 @@ SAL_IMPLEMENT_MAIN() sal_Int32 dot = filename.lastIndexOf( '.' ); OUString name( filename ); if (dot < 0) // has no extension - filename += OUSTR(".dll"); + filename += ".dll"; else name = name.copy( 0, dot ); ::System::String ^ output_dir = ustring_to_String( sys_output_dir ); @@ -545,7 +545,7 @@ SAL_IMPLEMENT_MAIN() } catch (System::IO::FileNotFoundException ^ ) { - throw Exception(OUSTR("Could not find the keyfile. Verify the --keyfile argument!"), 0); + throw Exception("Could not find the keyfile. Verify the --keyfile argument!", 0); } } else diff --git a/cli_ure/source/climaker/climaker_emit.cxx b/cli_ure/source/climaker/climaker_emit.cxx index 1eb1f9f1e1eb..cb4e427d7904 100644 --- a/cli_ure/source/climaker/climaker_emit.cxx +++ b/cli_ure/source/climaker/climaker_emit.cxx @@ -89,7 +89,7 @@ static inline ::System::Object ^ to_cli_constant( Any const & value ) value.getValue() )); default: throw RuntimeException( - OUSTR("unexpected constant type ") + + "unexpected constant type " + value.getValueType().getTypeName(), Reference< XInterface >() ); } @@ -1030,7 +1030,7 @@ Assembly ^ TypeEmitter::type_resolve( // getter Emit::MethodBuilder ^ method_builder = type_builder->DefineMethod( - ustring_to_String( OUSTR("get_") + + ustring_to_String( "get_" + xAttribute->getMemberName() ), c_property_method_attr, attribute_type, parameters ); @@ -1049,7 +1049,7 @@ Assembly ^ TypeEmitter::type_resolve( parameters[ 0 ] = attribute_type; method_builder = type_builder->DefineMethod( - ustring_to_String( OUSTR("set_") + + ustring_to_String( "set_" + xAttribute->getMemberName() ), c_property_method_attr, nullptr, parameters ); // define parameter info @@ -1140,9 +1140,9 @@ Assembly ^ TypeEmitter::type_resolve( const OUString sType(entry->m_xType->getName()); const OUString sMemberName(pseq_member_names[i]); if ( ! pseq_members[i].is()) - throw RuntimeException(OUSTR("Missing type description . Check if you need to " \ - "specify additional RDBs with the --extra option. Type missing for: ") + sType + - OUSTR("::") + sMemberName,0); + throw RuntimeException("Missing type description . Check if you need to " + + "specify additional RDBs with the --extra option. Type missing for: " + sType + + "::" + sMemberName,0); } sal_Int32 all_members_length = 0; @@ -1265,7 +1265,7 @@ Assembly ^ TypeEmitter::type_resolve( else { throw RuntimeException( - OUSTR("unexpected member type in ") + entry->m_xType->getName(), + "unexpected member type in " + entry->m_xType->getName(), Reference< XInterface >() ); } } @@ -2153,7 +2153,7 @@ Emit::CustomAttributeBuilder^ TypeEmitter::get_exception_attribute( return nullptr; default: throw RuntimeException( - OUSTR("unexpected type ") + xType->getName(), + "unexpected type " + xType->getName(), Reference< XInterface >() ); } } @@ -2287,7 +2287,7 @@ resolveInterfaceTypedef( type, UNO_QUERY); if (xIndTd.is() == sal_False) throw css::uno::Exception( - OUSTR("resolveInterfaceTypedef was called with an invalid argument"), 0); + "resolveInterfaceTypedef was called with an invalid argument", 0); return resolveInterfaceTypedef(xIndTd->getReferencedType()); } diff --git a/cli_ure/source/climaker/climaker_share.h b/cli_ure/source/climaker/climaker_share.h index f6e987f45777..b1d1b09c5dac 100755 --- a/cli_ure/source/climaker/climaker_share.h +++ b/cli_ure/source/climaker/climaker_share.h @@ -31,8 +31,6 @@ #include "com/sun/star/reflection/XSingletonTypeDescription2.hpp" #include "com/sun/star/reflection/XInterfaceMethodTypeDescription.hpp" -#define OUSTR(x) ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(x) ) - namespace climaker { |