diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-08-27 19:22:54 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-08-29 09:27:47 +0200 |
commit | d784e711c102f204552c3c816636da01b1085f61 (patch) | |
tree | 2420e649df72ad723b4c5643f14c9eea93b8417e /sdext | |
parent | 098bcc6131900eaeb51402fba06f4141bfbc5532 (diff) |
Directly use OUStringBuffer::indexOf
Change-Id: I455a7857294a136a515bb68cc8321ede0e5d1c85
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101575
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/minimizer/informationdialog.cxx | 2 | ||||
-rw-r--r-- | sdext/source/minimizer/optimizerdialogcontrols.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sdext/source/minimizer/informationdialog.cxx b/sdext/source/minimizer/informationdialog.cxx index d4a489c56079..8ab6ddfbd8cf 100644 --- a/sdext/source/minimizer/informationdialog.cxx +++ b/sdext/source/minimizer/informationdialog.cxx @@ -191,7 +191,7 @@ static OUString ImpValueOfInMB( sal_Int64 rVal ) fVal /= ( 1 << 20 ); fVal += 0.05; OUStringBuffer aVal( OUString::number( fVal ) ); - sal_Int32 nX( OUString( aVal.getStr() ).indexOf( '.' ) ); + sal_Int32 nX( aVal.indexOf( '.' ) ); if ( nX > 0 ) aVal.setLength( nX + 2 ); return aVal.makeStringAndClear(); diff --git a/sdext/source/minimizer/optimizerdialogcontrols.cxx b/sdext/source/minimizer/optimizerdialogcontrols.cxx index a7e139c33f24..13fe926dd36e 100644 --- a/sdext/source/minimizer/optimizerdialogcontrols.cxx +++ b/sdext/source/minimizer/optimizerdialogcontrols.cxx @@ -581,7 +581,7 @@ static OUString ImpValueOfInMB( sal_Int64 rVal, sal_Unicode nSeparator ) fVal /= ( 1 << 20 ); fVal += 0.05; OUStringBuffer aVal( OUString::number( fVal ) ); - sal_Int32 nX( OUString( aVal.getStr() ).indexOf( '.' ) ); + sal_Int32 nX( aVal.indexOf( '.' ) ); if ( nX >= 0 ) { aVal.setLength( nX + 2 ); |