svtools/source/filter/exportdialog.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit f144907f6582051a96d6c9d5458d299c488df019 Author: Stephan Bergmann <[email protected]> AuthorDate: Thu Aug 27 19:07:27 2020 +0200 Commit: Stephan Bergmann <[email protected]> CommitDate: Sat Aug 29 08:09:10 2020 +0200 Directly use OUStringBuffer::indexOf Change-Id: I5d7673315b3bcbcdc47d31c8fad958e907699a6d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101573 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <[email protected]> diff --git a/svtools/source/filter/exportdialog.cxx b/svtools/source/filter/exportdialog.cxx index 09e2e9b4d3b5..43f7cedcba7b 100644 --- a/svtools/source/filter/exportdialog.cxx +++ b/svtools/source/filter/exportdialog.cxx @@ -867,7 +867,7 @@ static OUString ImpValueOfInKB( sal_Int64 rVal ) fVal /= ( 1 << 10 ); 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(); _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
