diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-06 09:38:40 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-06 09:38:40 +0100 |
commit | fd80fa38db85129934326e7e31f249a967c5ec04 (patch) | |
tree | 0213e5baca1ff9618abb7290c0047b32b7bf6519 /xmlhelp | |
parent | 36328248309ebebee616452248d55923280deabb (diff) |
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I9ee0d12d68cef7bd65d1e119d0272e356e7cf300
Diffstat (limited to 'xmlhelp')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/databases.cxx | 8 | ||||
-rw-r--r-- | xmlhelp/source/treeview/tvread.cxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx index 16aff94b7b8d..332dbe36f17e 100644 --- a/xmlhelp/source/cxxhelp/provider/databases.cxx +++ b/xmlhelp/source/cxxhelp/provider/databases.cxx @@ -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"; } diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx index 28ad1522c6b7..27e2dafab6f6 100644 --- a/xmlhelp/source/treeview/tvread.cxx +++ b/xmlhelp/source/treeview/tvread.cxx @@ -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(); |