From 8a59191c15c6b22f825f999f633e1bbe2a7698b2 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 1 Aug 2012 21:35:08 +0200 Subject: test: string cleanup in BootstrapFixture Change-Id: I468c295713fc34b64403a1c31f802820e6608b07 --- test/source/bootstrapfixture.cxx | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'test') diff --git a/test/source/bootstrapfixture.cxx b/test/source/bootstrapfixture.cxx index 86e2acbd4b35..b560913699be 100644 --- a/test/source/bootstrapfixture.cxx +++ b/test/source/bootstrapfixture.cxx @@ -48,10 +48,10 @@ using namespace ::com::sun::star; static void aBasicErrorFunc( const String &rErr, const String &rAction ) { - rtl::OStringBuffer aErr( "Unexpected dialog: " ); - aErr.append( rtl::OUStringToOString( rAction, RTL_TEXTENCODING_ASCII_US ) ); + OStringBuffer aErr( "Unexpected dialog: " ); + aErr.append( OUStringToOString( rAction, RTL_TEXTENCODING_ASCII_US ) ); aErr.append( " Error: " ); - aErr.append( rtl::OUStringToOString( rErr, RTL_TEXTENCODING_ASCII_US ) ); + aErr.append( OUStringToOString( rErr, RTL_TEXTENCODING_ASCII_US ) ); CPPUNIT_ASSERT_MESSAGE( aErr.getStr(), false); } @@ -72,29 +72,28 @@ void test::BootstrapFixture::setUp() // force locale (and resource files loaded) to en-US const LanguageType eLang=LANGUAGE_ENGLISH_US; - rtl::OUString aLang, aCountry; + OUString aLang, aCountry; MsLangId::convertLanguageToIsoNames(eLang, aLang, aCountry); - lang::Locale aLocale(aLang, aCountry, rtl::OUString()); + lang::Locale aLocale(aLang, aCountry, OUString()); ResMgr::SetDefaultLocale( aLocale ); if (m_bNeedUCB) { // initialise UCB-Broker uno::Sequence aUcbInitSequence(2); - aUcbInitSequence[0] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Local")); - aUcbInitSequence[1] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Office")); + aUcbInitSequence[0] <<= OUString("Local"); + aUcbInitSequence[1] <<= OUString("Office"); bool bInitUcb = ucbhelper::ContentBroker::initialize(m_xSFactory, aUcbInitSequence); CPPUNIT_ASSERT_MESSAGE("Should be able to initialize UCB", bInitUcb); uno::Reference xUcb = ucbhelper::ContentBroker::get()->getContentProviderManagerInterface(); - uno::Reference xFileProvider(m_xSFactory->createInstance( - rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.ucb.FileContentProvider"))), uno::UNO_QUERY); - xUcb->registerContentProvider(xFileProvider, rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("file")), sal_True); + uno::Reference xFileProvider(m_xSFactory->createInstance("com.sun.star.ucb.FileContentProvider"), uno::UNO_QUERY); + xUcb->registerContentProvider(xFileProvider, "file", sal_True); } SvtSysLocaleOptions aLocalOptions; - rtl::OUString aLangISO = MsLangId::convertLanguageToIsoString( LANGUAGE_ENGLISH_US ); + OUString aLangISO = MsLangId::convertLanguageToIsoString( LANGUAGE_ENGLISH_US ); aLocalOptions.SetLocaleConfigString( aLangISO ); aLocalOptions.SetUILocaleConfigString( aLangISO ); -- cgit