Kaydet (Commit) 5fca9e5b authored tarafından Noel Grandin's avatar Noel Grandin

remove unnecessary use of OUString constructor in UNOTOOLS module

Change-Id: Iad166e6b9ce0877200bd58c388b3914b15167196
üst b9bbd847
......@@ -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() )
{
......
......@@ -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;
......
......@@ -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;
......
......@@ -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))
......
......@@ -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 ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment