[Libreoffice-commits] core.git: comphelper/source

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Mon Jan 6 10:26:08 UTC 2020


 comphelper/source/misc/meminfo.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 499bfe4584ea3334cda1501daa9aa3026edd45be
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Sun Jan 5 16:08:32 2020 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Jan 6 11:25:35 2020 +0100

    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 at redhat.com>

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;
 


More information about the Libreoffice-commits mailing list