diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-10 16:03:52 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-13 07:57:13 +0100 |
commit | bcee672425d37bc0007b666cc4a8152aa1a76bb5 (patch) | |
tree | 6a44b439bba8a94f92e98e779c37fd083f9a3dd0 /sfx2 | |
parent | f528ad715834d4ffb0c762f7af9c19d5dce2dadd (diff) |
Use indexed getToken()
Change-Id: Ibd9d23b914645fdf52403c6c9d90a4058f2cf406
Reviewed-on: https://gerrit.libreoffice.org/67637
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/childwin.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
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); |