diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-23 12:06:00 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-24 14:43:34 +0200 |
commit | 6f50961e69406a17d6ec998956a6b33208b1001b (patch) | |
tree | 413c83df969e73c5cba1e11ef3740afc748ee1f5 /ure | |
parent | 4e729de73f2947155248f8df5897380611b87917 (diff) |
remove more rtl::OUString and OString prefixes
which seem to have snuck back in since the great rounds of removals.
Change-Id: I85f7f5f4801c0b48dae8b50f51f83595b286d6a1
Reviewed-on: https://gerrit.libreoffice.org/62229
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ure')
-rw-r--r-- | ure/source/uretest/cppmain.cc | 30 | ||||
-rw-r--r-- | ure/source/uretest/cppserver.cc | 10 | ||||
-rw-r--r-- | ure/source/uretest/cpptest.cc | 12 |
3 files changed, 26 insertions, 26 deletions
diff --git a/ure/source/uretest/cppmain.cc b/ure/source/uretest/cppmain.cc index fb957d9f221a..1434947030b0 100644 --- a/ure/source/uretest/cppmain.cc +++ b/ure/source/uretest/cppmain.cc @@ -83,7 +83,7 @@ public: context_(context) {} virtual ::sal_Int32 SAL_CALL run( - css::uno::Sequence< ::rtl::OUString > const &); + css::uno::Sequence< OUString > const &); private: Service(Service &); // not defined @@ -93,17 +93,17 @@ private: void test( css::uno::Reference< test::types::XTest > const & test, - ::rtl::OUString const & name); + OUString const & name); css::uno::Reference< css::uno::XComponentContext > context_; }; -::sal_Int32 Service::run(css::uno::Sequence< ::rtl::OUString > const &) { +::sal_Int32 Service::run(css::uno::Sequence< OUString > const &) { osl_getThreadIdentifier(0); // check for sal (new salhelper::SimpleReferenceObject)->release(); // check for salhelper css::uno::getCurrentContext(); // check for cppu try { // check for cppuhelper - std::auto_ptr< cppu::UnoUrl > dummy(new cppu::UnoUrl(rtl::OUString())); + std::auto_ptr< cppu::UnoUrl > dummy(new cppu::UnoUrl(OUString())); } catch (rtl::MalformedUriException &) {} static char const * const services[] = { "com.sun.star.io.DataInputStream", @@ -121,7 +121,7 @@ private: "com.sun.star.uri.UriSchemeParser_vndDOTsunDOTstarDOTscript" }; for (::std::size_t i = 0; i < SAL_N_ELEMENTS(services); ++i) { - ::rtl::OUString name(::rtl::OUString::createFromAscii(services[i])); + OUString name(OUString::createFromAscii(services[i])); css::uno::Reference< css::uno::XInterface > instance; try { instance = context_->getServiceManager()->createInstanceWithContext( @@ -130,7 +130,7 @@ private: throw; } catch (css::uno::Exception &) { throw css::uno::RuntimeException( - ::rtl::OUString("error creating instance"), + OUString("error creating instance"), static_cast< ::cppu::OWeakObject * >(this)); } if (!instance.is()) { @@ -168,22 +168,22 @@ private: for (std::size_t i = 0; i != SAL_N_ELEMENTS(singletons); ++i) { css::uno::Reference< css::uno::XInterface > instance( context_->getValueByName( - "/singletons/" + rtl::OUString::createFromAscii(singletons[i])), + "/singletons/" + OUString::createFromAscii(singletons[i])), css::uno::UNO_QUERY_THROW); } css::util::theMacroExpander::get(context_); test( ::test::types::CppTest::create(context_), - ::rtl::OUString("test.types.CppTest")); + OUString("test.types.CppTest")); test( ::test::types::JavaTest::create(context_), - ::rtl::OUString("test.types.JavaTest")); + OUString("test.types.JavaTest")); return 0; } void Service::test( css::uno::Reference< test::types::XTest > const & test, - ::rtl::OUString const & name) + OUString const & name) { bool ok = false; try { @@ -194,7 +194,7 @@ void Service::test( if (!ok) { throw css::uno::RuntimeException( (name - + ::rtl::OUString(".throwException failed")), + + OUString(".throwException failed")), static_cast< ::cppu::OWeakObject * >(this)); } } @@ -207,12 +207,12 @@ css::uno::Reference< css::uno::XInterface > create( return static_cast< ::cppu::OWeakObject * >(new Service(context)); } -rtl::OUString getImplementationName() { - return rtl::OUString("test.cpp.cppmain.Component"); +OUString getImplementationName() { + return OUString("test.cpp.cppmain.Component"); } -css::uno::Sequence< ::rtl::OUString > getSupportedServiceNames() { - return css::uno::Sequence< ::rtl::OUString >(); +css::uno::Sequence< OUString > getSupportedServiceNames() { + return css::uno::Sequence< OUString >(); } } diff --git a/ure/source/uretest/cppserver.cc b/ure/source/uretest/cppserver.cc index db42c9fb3f9f..48f63e0b9284 100644 --- a/ure/source/uretest/cppserver.cc +++ b/ure/source/uretest/cppserver.cc @@ -42,7 +42,7 @@ public: Service() {} virtual ::test::types::Data SAL_CALL getData() { - return ::test::types::Data(rtl::OUString("Hello"), 42); + return ::test::types::Data(OUString("Hello"), 42); } private: @@ -60,12 +60,12 @@ css::uno::Reference< css::uno::XInterface > create( return static_cast< ::cppu::OWeakObject * >(new Service); } -rtl::OUString getImplementationName() { - return rtl::OUString("test.cpp.cppserver.Component"); +OUString getImplementationName() { + return OUString("test.cpp.cppserver.Component"); } -css::uno::Sequence< rtl::OUString > getSupportedServiceNames() { - return css::uno::Sequence< rtl::OUString >(); +css::uno::Sequence< OUString > getSupportedServiceNames() { + return css::uno::Sequence< OUString >(); } } diff --git a/ure/source/uretest/cpptest.cc b/ure/source/uretest/cpptest.cc index b037fdceebfb..3545a88b5f07 100644 --- a/ure/source/uretest/cpptest.cc +++ b/ure/source/uretest/cpptest.cc @@ -43,7 +43,7 @@ public: virtual void SAL_CALL throwException() { throw test::types::TestException( - rtl::OUString("test"), + OUString("test"), static_cast< cppu::OWeakObject * >(this)); } @@ -62,13 +62,13 @@ css::uno::Reference< css::uno::XInterface > create( return static_cast< cppu::OWeakObject * >(new Service); } -rtl::OUString getImplementationName() { - return rtl::OUString("test.cpp.cpptest.Component"); +OUString getImplementationName() { + return OUString("test.cpp.cpptest.Component"); } -css::uno::Sequence< rtl::OUString > getSupportedServiceNames() { - rtl::OUString s("test.types.CppTest"); - return css::uno::Sequence< rtl::OUString >(&s, 1); +css::uno::Sequence< OUString > getSupportedServiceNames() { + OUString s("test.types.CppTest"); + return css::uno::Sequence< OUString >(&s, 1); } } |