diff --git a/store/source/storbase.hxx b/store/source/storbase.hxx index b9dc53247a8d..09b0e88b2ae5 100644 --- a/store/source/storbase.hxx +++ b/store/source/storbase.hxx @@ -284,10 +284,11 @@ struct PageData public: template< class T > T * construct() { - void * page = nullptr; sal_uInt16 size = 0; - if (allocate (&page, &size)) + void * page = nullptr; + sal_uInt16 nSize = 0; + if (allocate (&page, &nSize)) { - return new(page) T(size); + return new(page) T(nSize); } return 0; }