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

Change-Id: I9ee0d12d68cef7bd65d1e119d0272e356e7cf300
This commit is contained in:
Stephan Bergmann
2015-11-06 09:38:40 +01:00
parent 3632824830
commit fd80fa38db
2 changed files with 5 additions and 5 deletions

View File

@@ -1587,7 +1587,7 @@ OUString KeyDataBaseFileIterator::implGetDbFileFromPackage
( Reference< deployment::XPackage > xPackage )
{
OUString aExpandedURL =
implGetFileFromPackage( OUString( ".key" ), xPackage );
implGetFileFromPackage( ".key", xPackage );
return aExpandedURL;
}
@@ -1658,7 +1658,7 @@ Reference< XHierarchicalNameAccess > JarFileIterator::implGetJarFromPackage
Reference< XHierarchicalNameAccess > xNA;
OUString zipFile =
implGetFileFromPackage( OUString( ".jar" ), xPackage );
implGetFileFromPackage( ".jar", xPackage );
try
{
@@ -1784,7 +1784,7 @@ OUString IndexFolderIterator::nextIndexFolder( bool& o_rbExtension, bool& o_rbTe
OUString IndexFolderIterator::implGetIndexFolderFromPackage( bool& o_rbTemporary, Reference< deployment::XPackage > xPackage )
{
OUString aIndexFolder =
implGetFileFromPackage( OUString( ".idxl" ), xPackage );
implGetFileFromPackage( ".idxl", xPackage );
o_rbTemporary = false;
if( !m_xSFA->isFolder( aIndexFolder ) )
@@ -1848,7 +1848,7 @@ OUString IndexFolderIterator::implGetIndexFolderFromPackage( bool& o_rbTemporary
aIndexer.indexDocuments();
if( bIsWriteAccess )
aIndexFolder = implGetFileFromPackage( OUString( ".idxl" ), xPackage );
aIndexFolder = implGetFileFromPackage( ".idxl", xPackage );
else
aIndexFolder = aZipDir + "/help.idxl";
}

View File

@@ -496,7 +496,7 @@ bool TVChildTarget::SearchAndInsert(TVDom* p, TVDom* tvDom)
for(i = tvDom->children.begin(); i!=tvDom->children.end(); ++i)
if (!((*i)->isLeaf()) &&
((*i)->id.getLength() == p->id.getLength()) &&
(p->id.replaceAt((*i)->parent->id.getLength(), p->id.getLength()-(*i)->parent->id.getLength(), OUString("")) == (*i)->parent->id)) //prefix check
(p->id.replaceAt((*i)->parent->id.getLength(), p->id.getLength()-(*i)->parent->id.getLength(), "") == (*i)->parent->id)) //prefix check
{
h = true;
c_int = (*i)->id.toInt32();