diff options
Diffstat (limited to 'stoc/source/uriproc/UriReferenceFactory.cxx')
-rw-r--r-- | stoc/source/uriproc/UriReferenceFactory.cxx | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/stoc/source/uriproc/UriReferenceFactory.cxx b/stoc/source/uriproc/UriReferenceFactory.cxx index 89367ade36cf..1d87c69ab07c 100644 --- a/stoc/source/uriproc/UriReferenceFactory.cxx +++ b/stoc/source/uriproc/UriReferenceFactory.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -421,7 +422,7 @@ css::uno::Reference< css::uri::XUriReference > Factory::parse( throw; } catch (css::uno::Exception & e) { throw css::lang::WrappedTargetRuntimeException( - rtl::OUString::createFromAscii("creating service ") + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("creating service ")) + serviceName, static_cast< cppu::OWeakObject * >(this), css::uno::makeAny(e)); //TODO: preserve type of e @@ -440,7 +441,7 @@ css::uno::Reference< css::uri::XUriReference > Factory::parse( uriRef = parseGeneric(scheme, schemeSpecificPart); } catch (std::bad_alloc &) { throw css::uno::RuntimeException( - rtl::OUString::createFromAscii("std::bad_alloc"), + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("std::bad_alloc")), static_cast< cppu::OWeakObject * >(this)); } } @@ -705,20 +706,22 @@ css::uno::Reference< css::uno::XInterface > create( return static_cast< cppu::OWeakObject * >(new Factory(context)); } catch (std::bad_alloc &) { throw css::uno::RuntimeException( - rtl::OUString::createFromAscii("std::bad_alloc"), 0); + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("std::bad_alloc")), 0); } } rtl::OUString getImplementationName() { - return rtl::OUString::createFromAscii( - "com.sun.star.comp.uri.UriReferenceFactory"); + return rtl::OUString( + RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.uri.UriReferenceFactory")); } css::uno::Sequence< rtl::OUString > getSupportedServiceNames() { css::uno::Sequence< rtl::OUString > s(1); - s[0] = rtl::OUString::createFromAscii( - "com.sun.star.uri.UriReferenceFactory"); + s[0] = rtl::OUString( + RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uri.UriReferenceFactory")); return s; } } } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |