summaryrefslogtreecommitdiff
path: root/store/source/storbase.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-09-14 17:01:50 +0200
committerMichael Stahl <mstahl@redhat.com>2016-09-15 12:01:11 +0200
commitb647996a9babbee7b33cf45192e57df6a124628b (patch)
treeddc6dfe8a62ec53fbacc4eeccfeb20019f3ef4f0 /store/source/storbase.cxx
parenta19a67e20e847a42063559694ec5beec71abcfb3 (diff)
replace sal_Size with std::size_t (or sal_uInt64 for SvStream pos)
... except in include/rtl, include/sal, include/uno, where sal_Size is retained for compatibility, and where callers of rtl functions pass in pointers that are incompatible on MSVC. Change-Id: I8344453780689f5120ba0870e44965b6d292450c
Diffstat (limited to 'store/source/storbase.cxx')
-rw-r--r--store/source/storbase.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/store/source/storbase.cxx b/store/source/storbase.cxx
index 4bdc5dd5fe02..bb2cf277fd04 100644
--- a/store/source/storbase.cxx
+++ b/store/source/storbase.cxx
@@ -113,8 +113,8 @@ storeError
PageData::Allocator_Impl::initialize (sal_uInt16 nPageSize)
{
char name[RTL_CACHE_NAME_LENGTH + 1];
- sal_Size size = sal::static_int_cast< sal_Size >(nPageSize);
- (void) snprintf (name, sizeof(name), "store_page_alloc_%" SAL_PRIuUINTPTR, size);
+ std::size_t size = sal::static_int_cast<std::size_t>(nPageSize);
+ (void) snprintf (name, sizeof(name), "store_page_alloc_%" SAL_PRI_SIZET "u", size);
m_page_cache = rtl_cache_create (name, size, 0, nullptr, nullptr, nullptr, nullptr, nullptr, 0);
if (!m_page_cache)