summaryrefslogtreecommitdiffstats
path: root/stoc/test/registry_tdprovider/testregistrytdprovider.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'stoc/test/registry_tdprovider/testregistrytdprovider.cxx')
-rw-r--r--stoc/test/registry_tdprovider/testregistrytdprovider.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/stoc/test/registry_tdprovider/testregistrytdprovider.cxx b/stoc/test/registry_tdprovider/testregistrytdprovider.cxx
index ca245d7d7f43..cb47b3371e8c 100644
--- a/stoc/test/registry_tdprovider/testregistrytdprovider.cxx
+++ b/stoc/test/registry_tdprovider/testregistrytdprovider.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.
@@ -867,7 +868,7 @@ sal_Int32 Service::run(css::uno::Sequence< rtl::OUString > const &)
}
rtl::OUString Service::getImplementationName() {
- return rtl::OUString::createFromAscii("test.registrytdprovider.impl");
+ return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("test.registrytdprovider.impl"));
}
css::uno::Sequence< rtl::OUString > Service::getSupportedServiceNames() {
@@ -911,9 +912,9 @@ namespace {
bool writeInfo(void * registryKey, rtl::OUString const & implementationName,
css::uno::Sequence< rtl::OUString > const & serviceNames) {
- rtl::OUString keyName(rtl::OUString::createFromAscii("/"));
+ rtl::OUString keyName(RTL_CONSTASCII_USTRINGPARAM("/"));
keyName += implementationName;
- keyName += rtl::OUString::createFromAscii("/UNO/SERVICES");
+ keyName += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/UNO/SERVICES"));
css::uno::Reference< css::registry::XRegistryKey > key;
try {
key = static_cast< css::registry::XRegistryKey * >(registryKey)->
@@ -941,3 +942,5 @@ extern "C" sal_Bool SAL_CALL component_writeInfo(void *, void * registryKey) {
&& writeInfo(registryKey, Service::getImplementationName(),
Service::getSupportedServiceNames());
}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */