cppcheck: shadowFunction in store/storbase

Change-Id: I836a5476a139c8c863c2e7c33e57c31dc3f6ab78
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87432
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Julien Nabet 2020-01-26 10:05:45 +01:00
parent f7c3e35a9d
commit d87ba243e5

View file

@ -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;
}