diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2020-01-26 10:05:45 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2020-01-26 11:44:05 +0100 |
commit | d87ba243e5dd2f6afcd9da7d99781a78fced1cba (patch) | |
tree | 62f3000d2da06bcd2fb20f052d70b1d3cea8ac86 /store | |
parent | f7c3e35a9d28a1294d635f714f20933572f12e4d (diff) |
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>
Diffstat (limited to 'store')
-rw-r--r-- | store/source/storbase.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
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; } |