diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-07-18 11:22:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-07-19 11:14:00 +0200 |
commit | 7201db417cfdb115d7dc84f844c0966a82014cbd (patch) | |
tree | a055c5bc0d3ca4c3d65acb41c1919f4b5cff3cf7 /basic | |
parent | 416e9ecac90447581825355b772fe722d012b282 (diff) |
cid#1448547 Unchecked return value
Change-Id: If0b19a53bba10064a81a22856cd3796dcefd1f68
Reviewed-on: https://gerrit.libreoffice.org/75903
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/runtime/methods.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index 1119adf3d9e1..fe266fdc009c 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -779,7 +779,7 @@ void SbRtl_FileLen(StarBASIC *, SbxArray & rPar, bool) DirectoryItem aItem; (void)DirectoryItem::get( getFullPath( aStr ), aItem ); FileStatus aFileStatus( osl_FileStatus_Mask_FileSize ); - aItem.getFileStatus( aFileStatus ); + (void)aItem.getFileStatus( aFileStatus ); nLen = static_cast<sal_Int32>(aFileStatus.getFileSize()); } rPar.Get(0)->PutLong( static_cast<long>(nLen) ); |