summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-09 11:29:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-13 09:38:13 +0000
commite2e76df7e48fb77f1e802f57c7d9a22eb8c74c5a (patch)
tree15a072f5563c843939b0900aed256b7c89340407 /tools
parent417bc898802630c567d970d0283312697acdd5ff (diff)
create strong_int template and use it in tools::UniqueIndex
an experiment to see how useful a strong_int template works out Change-Id: Ib77700350f0fa3b018a1926233adf7a40d728d16 Reviewed-on: https://gerrit.libreoffice.org/34072 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/source/memtools/unqidx.cxx2
-rw-r--r--tools/source/ref/pstm.cxx2
2 files changed, 3 insertions, 1 deletions
diff --git a/tools/source/memtools/unqidx.cxx b/tools/source/memtools/unqidx.cxx
index 7a2091601e5c..e42498867c84 100644
--- a/tools/source/memtools/unqidx.cxx
+++ b/tools/source/memtools/unqidx.cxx
@@ -19,6 +19,8 @@
#include <tools/unqidx.hxx>
+UniqueIndexImpl::Index const UniqueIndexImpl::IndexNotFound(SAL_MAX_UINT32);
+
UniqueIndexImpl::Index UniqueIndexImpl::Insert( void* p )
{
// NULL-Pointer not allowed
diff --git a/tools/source/ref/pstm.cxx b/tools/source/ref/pstm.cxx
index 6c1015fc172f..4bd0d80bd1e0 100644
--- a/tools/source/ref/pstm.cxx
+++ b/tools/source/ref/pstm.cxx
@@ -422,7 +422,7 @@ SvPersistStream& SvPersistStream::WritePointer
aPTable[ pObj ] = nId;
nP |= P_OBJ;
}
- WriteId( *this, nP, nId, pObj->GetClassId() );
+ WriteId( *this, nP, (sal_uInt32)nId, pObj->GetClassId() );
if( nP & P_OBJ )
WriteObj( nP, pObj );
}