summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}