diff options
author | Noel Grandin <noel@peralex.com> | 2013-10-31 14:38:55 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-07 14:27:05 +0200 |
commit | 5fca9e5bfce57875e5d93245d6d1219d0a0e86c1 (patch) | |
tree | 3fd91b3f40e804e234513032bc7b2e90005751ab /unotools/source | |
parent | b9bbd847876cd7b23861c862af510da8244aef18 (diff) |
remove unnecessary use of OUString constructor in UNOTOOLS module
Change-Id: Iad166e6b9ce0877200bd58c388b3914b15167196
Diffstat (limited to 'unotools/source')
-rw-r--r-- | unotools/source/config/eventcfg.cxx | 6 | ||||
-rw-r--r-- | unotools/source/config/lingucfg.cxx | 2 | ||||
-rw-r--r-- | unotools/source/i18n/localedatawrapper.cxx | 10 | ||||
-rw-r--r-- | unotools/source/ucbhelper/ucbhelper.cxx | 4 | ||||
-rw-r--r-- | unotools/source/ucbhelper/ucblockbytes.cxx | 4 |
5 files changed, 13 insertions, 13 deletions
diff --git a/unotools/source/config/eventcfg.cxx b/unotools/source/config/eventcfg.cxx index ed18ff1a2074..f0e69664af4e 100644 --- a/unotools/source/config/eventcfg.cxx +++ b/unotools/source/config/eventcfg.cxx @@ -116,7 +116,7 @@ GlobalEventConfig_Impl::GlobalEventConfig_Impl() // Enable notification mechanism of our baseclass. // We need it to get information about changes outside these class on our used configuration keys! */ Sequence< OUString > aNotifySeq( 1 ); - aNotifySeq[0] = OUString( "Events" ); + aNotifySeq[0] = "Events"; EnableNotification( aNotifySeq, sal_True ); } @@ -256,9 +256,9 @@ Any SAL_CALL GlobalEventConfig_Impl::getByName( const OUString& aName ) throw (c { Any aRet; Sequence< beans::PropertyValue > props(2); - props[0].Name = OUString("EventType"); + props[0].Name = "EventType"; props[0].Value <<= OUString("Script"); - props[1].Name = OUString("Script"); + props[1].Name = "Script"; EventBindingHash::const_iterator it = m_eventBindingHash.find( aName ); if( it != m_eventBindingHash.end() ) { diff --git a/unotools/source/config/lingucfg.cxx b/unotools/source/config/lingucfg.cxx index 8f1e7673cae3..0f0344a50b49 100644 --- a/unotools/source/config/lingucfg.cxx +++ b/unotools/source/config/lingucfg.cxx @@ -1100,7 +1100,7 @@ uno::Reference< util::XChangesBatch > SvtLinguConfig::GetMainUpdateAccess() cons // get configuration update access beans::PropertyValue aValue; - aValue.Name = OUString("nodepath"); + aValue.Name = "nodepath"; aValue.Value = uno::makeAny(OUString("org.openoffice.Office.Linguistic")); uno::Sequence< uno::Any > aProps(1); aProps[0] <<= aValue; diff --git a/unotools/source/i18n/localedatawrapper.cxx b/unotools/source/i18n/localedatawrapper.cxx index 09a230ece38b..c9fcf63b72a1 100644 --- a/unotools/source/i18n/localedatawrapper.cxx +++ b/unotools/source/i18n/localedatawrapper.cxx @@ -120,20 +120,20 @@ const ::com::sun::star::lang::Locale& LocaleDataWrapper::getMyLocale() const void LocaleDataWrapper::invalidateData() { - aCurrSymbol = OUString(); - aCurrBankSymbol = OUString(); + aCurrSymbol = ""; + aCurrBankSymbol = ""; nDateFormat = nLongDateFormat = nDateFormatInvalid; nCurrPositiveFormat = nCurrNegativeFormat = nCurrDigits = nCurrFormatInvalid; if ( bLocaleDataItemValid ) { for (sal_Int32 j=0; j<LocaleItem::COUNT; ++j) - aLocaleItem[j] = OUString(); + aLocaleItem[j] = ""; bLocaleDataItemValid = sal_False; } if ( bReservedWordValid ) { for ( sal_Int16 j=0; j<reservedWords::COUNT; ++j ) - aReservedWord[j] = OUString(); + aReservedWord[j] = ""; bReservedWordValid = sal_False; } xDefaultCalendar.reset(); @@ -595,7 +595,7 @@ void LocaleDataWrapper::getCurrSymbolsImpl() { if (areChecksEnabled()) outputCheckMessage(OUString("LocaleDataWrapper::getCurrSymbolsImpl: no currency at all, using ShellsAndPebbles")); - aCurrSymbol = OUString("ShellsAndPebbles"); + aCurrSymbol = "ShellsAndPebbles"; aCurrBankSymbol = aCurrSymbol; nCurrPositiveFormat = nCurrNegativeFormat = nCurrFormatDefault; nCurrDigits = 2; diff --git a/unotools/source/ucbhelper/ucbhelper.cxx b/unotools/source/ucbhelper/ucbhelper.cxx index 97cc3c75c928..f20aaee7300e 100644 --- a/unotools/source/ucbhelper/ucbhelper.cxx +++ b/unotools/source/ucbhelper/ucbhelper.cxx @@ -86,7 +86,7 @@ std::vector<OUString> getContents(OUString const & url) { std::vector<OUString> cs; ucbhelper::Content c(content(url)); css::uno::Sequence<OUString> args(1); - args[0] = OUString("Title"); + args[0] = "Title"; css::uno::Reference<css::sdbc::XResultSet> res( c.createCursor(args, ucbhelper::INCLUDE_FOLDERS_AND_DOCUMENTS), css::uno::UNO_SET_THROW); @@ -250,7 +250,7 @@ bool utl::UCBContentHelper::MakeFolder( continue; } css::uno::Sequence<OUString> keys(1); - keys[0] = OUString("Title"); + keys[0] = "Title"; css::uno::Sequence<css::uno::Any> values(1); values[0] <<= title; if (parent.insertNewContent(info[i].Type, keys, values, result)) diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx index 5c7f78f35f87..6e9d826c49e0 100644 --- a/unotools/source/ucbhelper/ucblockbytes.cxx +++ b/unotools/source/ucbhelper/ucblockbytes.cxx @@ -1621,7 +1621,7 @@ UcbLockBytesRef UcbLockBytes::CreateLockBytes( const Reference < XContent >& xCo { Reference < XCommandProcessor > xProcessor( xContent, UNO_QUERY ); Command aCommand; - aCommand.Name = OUString("setPropertyValues"); + aCommand.Name = "setPropertyValues"; aCommand.Handle = -1; /* unknown */ aCommand.Argument <<= rProps; xProcessor->execute( aCommand, 0, Reference < XCommandEnvironment >() ); @@ -1632,7 +1632,7 @@ UcbLockBytesRef UcbLockBytes::CreateLockBytes( const Reference < XContent >& xCo aArgument.Mode = OpenMode::DOCUMENT; Command aCommand; - aCommand.Name = OUString( "open" ); + aCommand.Name = "open"; aCommand.Argument <<= aArgument; Reference< XProgressHandler > xProgressHdl = new ProgressHandler_Impl( LINK( &xLockBytes, UcbLockBytes, DataAvailHdl ) ); |