summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-01-05 16:08:32 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-01-06 11:25:35 +0100
commit499bfe4584ea3334cda1501daa9aa3026edd45be (patch)
tree1bb2b19d8954cd08670569e2dceed87bfc01baf8 /comphelper
parente7e01efc56f7061d0a2e5142b4bae84dd403cc50 (diff)
loplugin:cstylecast (macOS)
...("from 'struct task_basic_info *' to 'task_info_t' (aka 'int *')", in code newly introduced with 0b8ae8725083eb0526a262d434cc06fb3f3e7336 "tdf#125662: disable parallel-zip if the memory...") Change-Id: I8ae16b4e6055b0841e9143b554bd832cb72346f5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86243 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/meminfo.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/comphelper/source/misc/meminfo.cxx b/comphelper/source/misc/meminfo.cxx
index d6508e9de567..762d4ef1a9b2 100644
--- a/comphelper/source/misc/meminfo.cxx
+++ b/comphelper/source/misc/meminfo.cxx
@@ -56,7 +56,8 @@ static sal_Int64 getMemUsedBySelf()
if (host_page_size(mach_host_self(), &pageSize) != KERN_SUCCESS)
return -1;
- if (task_info(mach_task_self(), TASK_BASIC_INFO, (task_info_t)&tInfo, &tInfoCount)
+ if (task_info(mach_task_self(), TASK_BASIC_INFO, reinterpret_cast<task_info_t>(&tInfo),
+ &tInfoCount)
!= KERN_SUCCESS)
return -1;