diff options
Diffstat (limited to 'bridges/test/java_uno/equals/testequals.cxx')
-rw-r--r-- | bridges/test/java_uno/equals/testequals.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/bridges/test/java_uno/equals/testequals.cxx b/bridges/test/java_uno/equals/testequals.cxx index 81357e12899b..0abaeb3db4f2 100644 --- a/bridges/test/java_uno/equals/testequals.cxx +++ b/bridges/test/java_uno/equals/testequals.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. @@ -122,7 +123,7 @@ void Service::connect(rtl::OUString const & rConnection, css::connection::Connector::create(m_xContext)->connect(rConnection)); css::uno::Reference< css::bridge::XBridgeFactory > xBridgeFactory( m_xContext->getServiceManager()->createInstanceWithContext( - rtl::OUString::createFromAscii("com.sun.star.bridge.BridgeFactory"), + rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.bridge.BridgeFactory" )), m_xContext), css::uno::UNO_QUERY); m_xBridge = xBridgeFactory->createBridge(rtl::OUString(), rProtocol, @@ -138,8 +139,7 @@ Service::get(rtl::OUString const & rName) throw (css::uno::RuntimeException) css::uno::Sequence< rtl::OUString > Service::getSupportedServiceNames_static() { css::uno::Sequence< rtl::OUString > aNames(1); - aNames[0] = rtl::OUString::createFromAscii( - "com.sun.star.test.bridges.testequals"); + aNames[0] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.test.bridges.testequals" )); return aNames; } @@ -196,9 +196,9 @@ namespace { bool writeInfo(void * pRegistryKey, sal_Char const * pImplementationName, css::uno::Sequence< rtl::OUString > const & rServiceNames) { - rtl::OUString aKeyName(rtl::OUString::createFromAscii("/")); + rtl::OUString aKeyName( RTL_CONSTASCII_USTRINGPARAM( "/" )); aKeyName += rtl::OUString::createFromAscii(pImplementationName); - aKeyName += rtl::OUString::createFromAscii("/UNO/SERVICES"); + aKeyName += rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "/UNO/SERVICES" )); css::uno::Reference< css::registry::XRegistryKey > xKey; try { @@ -230,3 +230,5 @@ extern "C" sal_Bool SAL_CALL component_writeInfo(void *, void * pRegistryKey) && writeInfo(pRegistryKey, Service::getImplementationName_static(), Service::getSupportedServiceNames_static()); } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |