[Libreoffice-commits] core.git: cui/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Dec 28 16:14:08 UTC 2018


 cui/source/options/dbregister.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 0d9850a3254a3ec3f4cacbfb687afe8e16b7503c
Author:     Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Thu Dec 27 21:13:02 2018 +0100
Commit:     Matteo Casalin <matteo.casalin at yahoo.com>
CommitDate: Fri Dec 28 17:13:44 2018 +0100

    Use indexed getToken
    
    Change-Id: I4eec0cf92ca0ff4af00b5db4c039db072d8cba39
    Reviewed-on: https://gerrit.libreoffice.org/65676
    Tested-by: Jenkins
    Reviewed-by: Matteo Casalin <matteo.casalin at yahoo.com>

diff --git a/cui/source/options/dbregister.cxx b/cui/source/options/dbregister.cxx
index d31876dadd98..a30e059c7c10 100644
--- a/cui/source/options/dbregister.cxx
+++ b/cui/source/options/dbregister.cxx
@@ -230,12 +230,12 @@ void DbRegistrationOptionsPage::Reset( const SfxItemSet* rSet )
     if ( !aUserData.isEmpty() )
     {
         HeaderBar &rBar = m_pPathBox->GetTheHeaderBar();
-
+        sal_Int32 nIdx {0};
         // restore column width
-        rBar.SetItemSize( ITEMID_TYPE, aUserData.getToken(0, ';').toInt32() );
+        rBar.SetItemSize( ITEMID_TYPE, aUserData.getToken(0, ';', nIdx).toInt32() );
         HeaderEndDrag_Impl( &rBar );
         // restore sort direction
-        bool bUp = aUserData.getToken(1, ';').toInt32() != 0;
+        bool bUp = aUserData.getToken(0, ';', nIdx).toInt32() != 0;
         HeaderBarItemBits nBits = rBar.GetItemBits(ITEMID_TYPE);
 
         if ( bUp )


More information about the Libreoffice-commits mailing list