diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-09-08 18:50:37 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-09-09 21:07:56 +0200 |
commit | daf832451e49592096c1cc7926584d887000aca3 (patch) | |
tree | f8538d6f8af577e9ff7155f98eb6a8ca96a5849f /sc | |
parent | 2c1c0168e02e1efda51f8a0f71bf030da4f665f3 (diff) |
Avoid getTokenCount()
Change-Id: I3148f7fcd9db1511cf552f62b81ac6937302a160
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/dbgui/scuiasciiopt.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/ui/dbgui/scuiasciiopt.cxx b/sc/source/ui/dbgui/scuiasciiopt.cxx index db98865ca7f0..bc57fb52f413 100644 --- a/sc/source/ui/dbgui/scuiasciiopt.cxx +++ b/sc/source/ui/dbgui/scuiasciiopt.cxx @@ -474,9 +474,10 @@ ScImportAsciiDlg::ScImportAsciiDlg( vcl::Window* pParent, const OUString& aDatNa pLbCustomLang->SelectLanguage(static_cast<LanguageType>(nLanguage)); // *** column type ListBox *** - sal_Int32 nCount = comphelper::string::getTokenCount(aColumnUser, ';'); - for (sal_Int32 i=0; i<nCount; i++) - pLbType->InsertEntry( aColumnUser.getToken( i, ';' ) ); + for (sal_Int32 nIdx {0}; nIdx>0; ) + { + pLbType->InsertEntry( aColumnUser.getToken( 0, ';', nIdx ) ); + } pLbType->SetSelectHdl( LINK( this, ScImportAsciiDlg, LbColTypeHdl ) ); pFtType->Disable(); |