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:
@@ -284,10 +284,11 @@ struct PageData
|
|||||||
public:
|
public:
|
||||||
template< class T > T * construct()
|
template< class T > T * construct()
|
||||||
{
|
{
|
||||||
void * page = nullptr; sal_uInt16 size = 0;
|
void * page = nullptr;
|
||||||
if (allocate (&page, &size))
|
sal_uInt16 nSize = 0;
|
||||||
|
if (allocate (&page, &nSize))
|
||||||
{
|
{
|
||||||
return new(page) T(size);
|
return new(page) T(nSize);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user