diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-06-29 09:45:49 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-06-29 09:53:41 +0200 |
commit | e67c21ee0696cde7538016a813a5cbf39fb803b0 (patch) | |
tree | 841b1b4914a60a4de951ae7a39de7249762725cc /l10ntools/source/treemerge.cxx | |
parent | 34dc6baf2c61f4127e6d8d89c92d8e4c37684ff5 (diff) |
Search for char instead of 1 char long string, when possible.
follow-up of a7674482254ee996b1c4fee60f3064778be369aa
Change-Id: I25f40c601454c092078307d931333af1bc1447ac
Diffstat (limited to 'l10ntools/source/treemerge.cxx')
-rw-r--r-- | l10ntools/source/treemerge.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/l10ntools/source/treemerge.cxx b/l10ntools/source/treemerge.cxx index 6f4bf6aa5916..06e93d72af8c 100644 --- a/l10ntools/source/treemerge.cxx +++ b/l10ntools/source/treemerge.cxx @@ -68,13 +68,13 @@ namespace helper::xmlStrToOString( pID ); xmlFree( pID ); - const sal_Int32 nFirstSlash = sID.indexOf("/"); + const sal_Int32 nFirstSlash = sID.indexOf('/'); // Update id attribute of topic { OString sNewID = sID.copy( 0, nFirstSlash + 1 ) + - rXhpRoot.copy( rXhpRoot.lastIndexOf("/") + 1 ) + - sID.copy( sID.indexOf( "/", nFirstSlash + 1 ) ); + rXhpRoot.copy( rXhpRoot.lastIndexOf('/') + 1 ) + + sID.copy( sID.indexOf( '/', nFirstSlash + 1 ) ); xmlSetProp( pReturn, (const xmlChar*)("id"), reinterpret_cast<const xmlChar*>(sNewID.getStr())); @@ -82,7 +82,7 @@ namespace const OString sXhpPath = rXhpRoot + - sID.copy(sID.indexOf("/", nFirstSlash + 1)); + sID.copy(sID.indexOf('/', nFirstSlash + 1)); xmlDocPtr pXhpFile = xmlParseFile( sXhpPath.getStr() ); // if xhpfile is missing than put this topic into comment if ( !pXhpFile ) |