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