[Libreoffice-commits] core.git: 2 commits - xmlhelp/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Thu Jul 18 13:18:06 UTC 2019
xmlhelp/source/cxxhelp/provider/urlparameter.cxx | 2 +-
xmlhelp/source/treeview/tvread.cxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 56f5a752f2e9e35887ec57de9e55a83d46a994c2
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Jul 18 10:11:17 2019 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Jul 18 15:17:03 2019 +0200
cid#704107 Unchecked return value
Change-Id: I6fb22b972a19b42787242d98d08fc425f5c0aea9
Reviewed-on: https://gerrit.libreoffice.org/75842
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx
index f11ae69d948e..72f28fef63c8 100644
--- a/xmlhelp/source/treeview/tvread.cxx
+++ b/xmlhelp/source/treeview/tvread.cxx
@@ -402,7 +402,7 @@ TVChildTarget::TVChildTarget( const Reference< XComponentContext >& xContext )
len = configData.vFileLen[--j];
std::unique_ptr<char[]> s(new char[ int(len) ]); // the buffer to hold the installed files
osl::File aFile( configData.vFileURL[j] );
- aFile.open( osl_File_OpenFlag_Read );
+ (void)aFile.open( osl_File_OpenFlag_Read );
aFile.read( s.get(),len,ret );
aFile.close();
commit 957afd1430062292ade17037d4705bd60652791d
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Jul 18 10:10:40 2019 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Jul 18 15:16:50 2019 +0200
cid#704106 Unchecked return value
Change-Id: Ic0a9d173c24af8962539b00207b8dd24cbbcdbc0
Reviewed-on: https://gerrit.libreoffice.org/75841
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
index e65d414bd97e..d77c70552bb9 100644
--- a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
+++ b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
@@ -565,7 +565,7 @@ helpMatch(const char * URI) {
static void *
fileOpen(const char *URI) {
osl::File *pRet = new osl::File(OUString(URI, strlen(URI), RTL_TEXTENCODING_UTF8));
- pRet->open(osl_File_OpenFlag_Read);
+ (void)pRet->open(osl_File_OpenFlag_Read);
return pRet;
}
More information about the Libreoffice-commits
mailing list