Kaydet (Commit) 12083a48 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)

Change-Id: I3f4a2ffd9c7d2bce54a553913e1310e25ab0135e
üst c76b97d3
......@@ -115,7 +115,7 @@ bool DocumentLockFile::CreateOwnLockFile()
aInsertArg.ReplaceExisting = sal_False;
uno::Any aCmdArg;
aCmdArg <<= aInsertArg;
aTargetContent.executeCommand( OUString( "insert" ), aCmdArg );
aTargetContent.executeCommand( "insert", aCmdArg );
// try to let the file be hidden if possible
try {
......@@ -209,7 +209,7 @@ void DocumentLockFile::RemoveFile()
uno::Reference < css::ucb::XCommandEnvironment > xEnv;
::ucbhelper::Content aCnt(m_aURL, xEnv, comphelper::getProcessComponentContext());
aCnt.executeCommand(OUString("delete"),
aCnt.executeCommand("delete",
uno::makeAny(true));
}
......
......@@ -39,7 +39,7 @@ bool FStatHelper::GetModifiedDateTimeOfFile( const OUString& rURL,
uno::Reference< XCommandEnvironment > (),
comphelper::getProcessComponentContext());
uno::Any aAny = aTestContent.getPropertyValue(
OUString("DateModified") );
"DateModified" );
if( aAny.hasValue() )
{
bRet = true;
......
......@@ -105,7 +105,7 @@ void ShareControlFile::OpenStream()
ucb::InsertCommandArgument aInsertArg;
aInsertArg.Data = xInput;
aInsertArg.ReplaceExisting = sal_False;
aContent.executeCommand( OUString("insert"), uno::makeAny( aInsertArg ) );
aContent.executeCommand( "insert", uno::makeAny( aInsertArg ) );
// try to let the file be hidden if possible
try {
......
......@@ -200,7 +200,7 @@ PassMap StorageItem::getInfo()
{
PassMap aResult;
Sequence< OUString > aNodeNames = ConfigItem::GetNodeNames( OUString("Store") );
Sequence< OUString > aNodeNames = ConfigItem::GetNodeNames( "Store" );
sal_Int32 aNodeCount = aNodeNames.getLength();
Sequence< OUString > aPropNames( aNodeCount );
sal_Int32 aNodeInd;
......@@ -342,13 +342,13 @@ void StorageItem::remove( const OUString& aURL, const OUString& aName )
sendSeq[0] = createIndex( forIndex );
ConfigItem::ClearNodeElements( OUString("Store"), sendSeq );
ConfigItem::ClearNodeElements( "Store", sendSeq );
}
void StorageItem::clear()
{
ConfigItem::ClearNodeSet( OUString("Store") );
ConfigItem::ClearNodeSet( "Store" );
}
......@@ -371,7 +371,7 @@ void StorageItem::update( const OUString& aURL, const NamePassRecord& aRecord )
sendSeq[0].Value <<= aRecord.GetPersPasswords();
ConfigItem::SetModified();
ConfigItem::SetSetProperties( OUString("Store"), sendSeq );
ConfigItem::SetSetProperties( "Store", sendSeq );
}
......
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