diff options
author | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2023-12-24 13:12:52 +0100 |
---|---|---|
committer | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2023-12-24 14:16:45 +0100 |
commit | 4663c56edf788a37545f253e028db99e480feb34 (patch) | |
tree | 81e72f76e7f9986b75a7dd13422aaf4e42af0680 | |
parent | 88987316ed0536de6c2c1e407fea4ecf77b5d5fc (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>
-rw-r--r-- | sal/osl/unx/thread.cxx | 2 | ||||
-rw-r--r-- | sal/rtl/hash.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/unx/thread.cxx b/sal/osl/unx/thread.cxx index b17f363511c6..3d51f4ab2a33 100644 --- a/sal/osl/unx/thread.cxx +++ b/sal/osl/unx/thread.cxx @@ -624,7 +624,7 @@ static oslThreadIdentifier insertThreadId (pthread_t hThread) if (pEntry == nullptr) { - pEntry = static_cast<HashEntry*>(calloc(sizeof(HashEntry), 1)); + pEntry = static_cast<HashEntry*>(calloc(1, sizeof(HashEntry))); pEntry->Handle = hThread; 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; } |