summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-12-18 10:21:21 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-12-19 16:20:28 +0100
commit2139fd8761e44b87e6d775d6de8361155dc3eaf1 (patch)
treedb2b45170c8df273ecb2d421a6dcc88c3a542063
parent5f794aae9ea6cba83d7e432d393317928d1f0c41 (diff)
drop last CONTAINER_APPEND use
Change-Id: Ia4500cfef039100cf12bc8e8a8946395e26b6890 Reviewed-on: https://gerrit.libreoffice.org/46700 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--include/tools/contnr.hxx2
-rw-r--r--svtools/source/contnr/ivctrl.cxx2
2 files changed, 1 insertions, 3 deletions
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;
}