summaryrefslogtreecommitdiff
path: root/sal/rtl
diff options
context:
space:
mode:
authorStephan Bergmann <stephan.bergmann@allotropia.de>2023-12-24 13:12:52 +0100
committerStephan Bergmann <stephan.bergmann@allotropia.de>2023-12-24 14:16:45 +0100
commit4663c56edf788a37545f253e028db99e480feb34 (patch)
tree81e72f76e7f9986b75a7dd13422aaf4e42af0680 /sal/rtl
parent88987316ed0536de6c2c1e407fea4ecf77b5d5fc (diff)
-Werror=calloc-transposed-args
Change-Id: I7b8b020bdbcd5b4db4cb478cc5fe1225f19ae0cf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161268 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Diffstat (limited to 'sal/rtl')
-rw-r--r--sal/rtl/hash.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/rtl/hash.cxx b/sal/rtl/hash.cxx
index 7cfc443cb972..4e255d965e17 100644
--- a/sal/rtl/hash.cxx
+++ b/sal/rtl/hash.cxx
@@ -79,7 +79,7 @@ static StringHashTable * rtl_str_hash_new(sal_uInt32 nSize)
pHash->nEntries = 0;
pHash->nSize = getNextSize (nSize);
- pHash->pData = static_cast< rtl_uString ** >(calloc(sizeof(rtl_uString *), pHash->nSize));
+ pHash->pData = static_cast< rtl_uString ** >(calloc(pHash->nSize, sizeof(rtl_uString *)));
return pHash;
}