[Libreoffice-commits] core.git: 2 commits - basic/source desktop/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu Jul 18 19:16:02 UTC 2019


 basic/source/runtime/methods.cxx |    4 ++--
 desktop/source/app/opencl.cxx    |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit dc9ef75c82aa0f3b210bc3009078693e9624c711
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Jul 18 10:36:37 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Jul 18 21:14:51 2019 +0200

    cid#1448326 Unchecked return value
    
    Change-Id: I21dd0363ff8cad8737a25b3b79f960d44d03bdd4
    Reviewed-on: https://gerrit.libreoffice.org/75877
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index 2928107308aa..de9b5f91badd 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -2966,9 +2966,9 @@ void SbRtl_GetAttr(StarBASIC * pBasic, SbxArray & rPar, bool bWrite)
         else
         {
             DirectoryItem aItem;
-            DirectoryItem::get( getFullPath( rPar.Get(1)->GetOUString() ), aItem );
+            (void)DirectoryItem::get( getFullPath( rPar.Get(1)->GetOUString() ), aItem );
             FileStatus aFileStatus( osl_FileStatus_Mask_Attributes | osl_FileStatus_Mask_Type );
-            aItem.getFileStatus( aFileStatus );
+            (void)aItem.getFileStatus( aFileStatus );
             sal_uInt64 nAttributes = aFileStatus.getAttributes();
             bool bReadOnly = (nAttributes & osl_File_Attribute_ReadOnly) != 0;
 
commit 8c5e75a05b51b0f9ea0408e902dfc74ca895b395
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Jul 18 10:37:39 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Jul 18 21:14:36 2019 +0200

    cid#1448333 Unchecked return value
    
    Change-Id: If23db9a245b4dd4b59b9b5410a094f2f374eedfd
    Reviewed-on: https://gerrit.libreoffice.org/75878
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/desktop/source/app/opencl.cxx b/desktop/source/app/opencl.cxx
index 16da10e50206..c421a3ab66da 100644
--- a/desktop/source/app/opencl.cxx
+++ b/desktop/source/app/opencl.cxx
@@ -219,7 +219,7 @@ void Desktop::CheckOpenCLCompute(const Reference< XDesktop2 > &xDesktop)
     DirectoryItem aItem;
     DirectoryItem::get( aURL, aItem );
     FileStatus aFileStatus( osl_FileStatus_Mask_ModifyTime );
-    aItem.getFileStatus( aFileStatus );
+    (void)aItem.getFileStatus( aFileStatus );
     TimeValue aTimeVal = aFileStatus.getModifyTime();
     aSelectedCLDeviceVersionID += "--";
     aSelectedCLDeviceVersionID += OUString::number(aTimeVal.Seconds);


More information about the Libreoffice-commits mailing list