store/source/storbase.hxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
New commits: commit d87ba243e5dd2f6afcd9da7d99781a78fced1cba Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Sun Jan 26 10:05:45 2020 +0100 Commit: Julien Nabet <serval2...@yahoo.fr> CommitDate: Sun Jan 26 11:44:05 2020 +0100 cppcheck: shadowFunction in store/storbase Change-Id: I836a5476a139c8c863c2e7c33e57c31dc3f6ab78 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87432 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2...@yahoo.fr> 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; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits