From 39d45390f4fab1e9e85f211d74ed2c08fda5b652 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Tue, 19 Mar 2013 11:39:07 +0100 Subject: removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarations s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b Reviewed-on: https://gerrit.libreoffice.org/2835 Reviewed-by: Thomas Arnhold Tested-by: Thomas Arnhold --- cppuhelper/test/cfg_test.cxx | 4 ++-- cppuhelper/test/testcmp/TestComponent.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cppuhelper/test') diff --git a/cppuhelper/test/cfg_test.cxx b/cppuhelper/test/cfg_test.cxx index 4acc23c2e741..dbbc3e0b05b3 100644 --- a/cppuhelper/test/cfg_test.cxx +++ b/cppuhelper/test/cfg_test.cxx @@ -53,7 +53,7 @@ namespace cfg_test //-------------------------------------------------------------------------------------------------- static Sequence< OUString > impl0_getSupportedServiceNames() { - OUString str( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.bootstrap.TestComponent0") ); + OUString str("com.sun.star.bootstrap.TestComponent0"); return Sequence< OUString >( &str, 1 ); } //-------------------------------------------------------------------------------------------------- @@ -64,7 +64,7 @@ static OUString impl0_getImplementationName() //-------------------------------------------------------------------------------------------------- static Sequence< OUString > impl1_getSupportedServiceNames() { - OUString str( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.bootstrap.TestComponent1") ); + OUString str("com.sun.star.bootstrap.TestComponent1"); return Sequence< OUString >( &str, 1 ); } //-------------------------------------------------------------------------------------------------- diff --git a/cppuhelper/test/testcmp/TestComponent.cxx b/cppuhelper/test/testcmp/TestComponent.cxx index a5cd71daea35..999417a57a24 100644 --- a/cppuhelper/test/testcmp/TestComponent.cxx +++ b/cppuhelper/test/testcmp/TestComponent.cxx @@ -179,7 +179,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory( rtl::OUString uTmp(pImplName, rtl_str_getLength(pImplName), RTL_TEXTENCODING_ASCII_US); rtl::OUString uImplName(cppu::EnvDcp::getTypeName(uTmp)); - rtl::OUString cmpName(RTL_CONSTASCII_USTRINGPARAM("impl.test.TestComponent")); + rtl::OUString cmpName("impl.test.TestComponent"); if (uImplName.equals(cmpName)) { -- cgit