diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-26 10:58:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-28 19:44:08 +0200 |
commit | ef513fd4b049b214a03fbe6e62a5ea43680a7a9b (patch) | |
tree | 82f2ce93bc8e5fde6dce8685b633c3d643c9f069 /svl/source/passwordcontainer/passwordcontainer.cxx | |
parent | 826f1bca40a01f0a249d5b6cbb7c39c11638a060 (diff) |
remove unnecessary use of OString::getStr
Change-Id: I0490efedf459190521f4339854b3394d57765fdb
Reviewed-on: https://gerrit.libreoffice.org/38058
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl/source/passwordcontainer/passwordcontainer.cxx')
-rw-r--r-- | svl/source/passwordcontainer/passwordcontainer.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svl/source/passwordcontainer/passwordcontainer.cxx b/svl/source/passwordcontainer/passwordcontainer.cxx index 7f17e57c640f..eaed9780e490 100644 --- a/svl/source/passwordcontainer/passwordcontainer.cxx +++ b/svl/source/passwordcontainer/passwordcontainer.cxx @@ -50,12 +50,12 @@ using namespace com::sun::star::ucb; static OUString createIndex(const vector< OUString >& lines) { - OString aResult; + OUString aResult; for( size_t i = 0; i < lines.size(); i++ ) { if( i ) - aResult += OString( "__" ); + aResult += "__"; OString line = OUStringToOString( lines[i], RTL_TEXTENCODING_UTF8 ); const sal_Char* pLine = line.getStr(); @@ -63,19 +63,19 @@ static OUString createIndex(const vector< OUString >& lines) { if (rtl::isAsciiAlphanumeric(static_cast<unsigned char>(*pLine))) { - aResult += OString( *pLine ); + aResult += OUStringLiteral1(*pLine); } else { - aResult += OString("_"); - aResult += OString::number( *pLine, 16 ); + aResult += "_"; + aResult += OUString::number( *pLine, 16 ); } pLine++; } } - return OUString::createFromAscii( aResult.getStr() ); + return aResult; } |