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:
parent
f7c3e35a9d
commit
d87ba243e5
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue