From dc9ef75c82aa0f3b210bc3009078693e9624c711 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 18 Jul 2019 10:36:37 +0100 Subject: cid#1448326 Unchecked return value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I21dd0363ff8cad8737a25b3b79f960d44d03bdd4 Reviewed-on: https://gerrit.libreoffice.org/75877 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- basic/source/runtime/methods.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'basic/source') 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; -- cgit