summaryrefslogtreecommitdiff
path: root/connectivity/source/commontools/TSortIndex.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/commontools/TSortIndex.cxx')
-rw-r--r--connectivity/source/commontools/TSortIndex.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/connectivity/source/commontools/TSortIndex.cxx b/connectivity/source/commontools/TSortIndex.cxx
index a0fc73823167..a9d5bc5028b7 100644
--- a/connectivity/source/commontools/TSortIndex.cxx
+++ b/connectivity/source/commontools/TSortIndex.cxx
@@ -19,6 +19,7 @@
#include "TSortIndex.hxx"
#include <algorithm>
+#include <iterator>
#include <o3tl/compat_functional.hxx>
@@ -107,7 +108,7 @@ void OSortIndex::AddKeyValue(OKeyValue * pKeyValue)
OSL_ENSURE(pKeyValue,"Can not be null here!");
if(m_bFrozen)
{
- m_aKeyValues.push_back(TIntValuePairVector::value_type(pKeyValue->getValue(),NULL));
+ m_aKeyValues.push_back(TIntValuePairVector::value_type(pKeyValue->getValue(),(OKeyValue *)NULL));
delete pKeyValue;
}
else