sfx2/source/appl/childwin.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit bcee672425d37bc0007b666cc4a8152aa1a76bb5 Author: Matteo Casalin <matteo.casa...@yahoo.com> AuthorDate: Sun Feb 10 16:03:52 2019 +0100 Commit: Matteo Casalin <matteo.casa...@yahoo.com> CommitDate: Wed Feb 13 07:57:13 2019 +0100 Use indexed getToken() Change-Id: Ibd9d23b914645fdf52403c6c9d90a4058f2cf406 Reviewed-on: https://gerrit.libreoffice.org/67637 Tested-by: Jenkins Reviewed-by: Matteo Casalin <matteo.casa...@yahoo.com> diff --git a/sfx2/source/appl/childwin.cxx b/sfx2/source/appl/childwin.cxx index 50d9371907d7..ca2919cf263e 100644 --- a/sfx2/source/appl/childwin.cxx +++ b/sfx2/source/appl/childwin.cxx @@ -132,8 +132,9 @@ bool GetSplitSizeFromString( const OUString& rStr, Size& rSize ) if ( nCount != 2 ) return false; - rSize.setWidth( aStr.getToken(0, ';' ).toInt32() ); - rSize.setHeight( aStr.getToken(1, ';' ).toInt32() ); + sal_Int32 nIdx{ 0 }; + rSize.setWidth( aStr.getToken(0, ';', nIdx ).toInt32() ); + rSize.setHeight( aStr.getToken(0, ';', nIdx ).toInt32() ); // negative sizes are invalid return !(rSize.Width() < 0 || rSize.Height() < 0); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits