[Libreoffice-commits] core.git: include/tools svtools/source

Caolán McNamara caolanm at redhat.com
Tue Dec 19 15:25:14 UTC 2017


 include/tools/contnr.hxx         |    2 --
 svtools/source/contnr/ivctrl.cxx |    2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 2139fd8761e44b87e6d775d6de8361155dc3eaf1
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Dec 18 10:21:21 2017 +0000

    drop last CONTAINER_APPEND use
    
    Change-Id: Ia4500cfef039100cf12bc8e8a8946395e26b6890
    Reviewed-on: https://gerrit.libreoffice.org/46700
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/include/tools/contnr.hxx b/include/tools/contnr.hxx
index ba65820f8729..5b04ea7bc820 100644
--- a/include/tools/contnr.hxx
+++ b/include/tools/contnr.hxx
@@ -23,8 +23,6 @@
 
 #include <limits.h>
 
-#define CONTAINER_APPEND            (ULONG_MAX)
-
 #define TREELIST_APPEND             (ULONG_MAX)
 #define TREELIST_ENTRY_NOTFOUND     (ULONG_MAX)
 
diff --git a/svtools/source/contnr/ivctrl.cxx b/svtools/source/contnr/ivctrl.cxx
index 247442ce9165..16dfe2749f72 100644
--- a/svtools/source/contnr/ivctrl.cxx
+++ b/svtools/source/contnr/ivctrl.cxx
@@ -96,7 +96,7 @@ SvxIconChoiceCtrlEntry* SvtIconChoiceCtrl::InsertEntry( const OUString& rText, c
 {
     SvxIconChoiceCtrlEntry* pEntry = new SvxIconChoiceCtrlEntry( rText, rImage);
 
-    _pImpl->InsertEntry( pEntry, CONTAINER_APPEND );
+    _pImpl->InsertEntry(pEntry, _pImpl->GetEntryCount());
 
     return pEntry;
 }


More information about the Libreoffice-commits mailing list