helpcompiler/inc/HelpCompiler.hxx | 2 +- vcl/source/gdi/pdfwriter_impl.cxx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-)
New commits: commit 3c479f6569dc079f5fb85006bbfd9e09e43d712d Author: Caolán McNamara <[email protected]> AuthorDate: Thu Jul 18 11:19:25 2019 +0100 Commit: Caolán McNamara <[email protected]> CommitDate: Fri Jul 19 09:43:02 2019 +0200 cid#1448495 Unchecked return value Change-Id: I8a7f347d8f3ff6195b10e5559ff0682734c54eaf Reviewed-on: https://gerrit.libreoffice.org/75900 Tested-by: Jenkins Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Caolán McNamara <[email protected]> diff --git a/helpcompiler/inc/HelpCompiler.hxx b/helpcompiler/inc/HelpCompiler.hxx index 91c1b2f59e65..2b4a6bad049d 100644 --- a/helpcompiler/inc/HelpCompiler.hxx +++ b/helpcompiler/inc/HelpCompiler.hxx @@ -63,7 +63,7 @@ namespace fs OString tmp(in.c_str()); OUString ustrSystemPath(OStringToOUString(tmp, getThreadTextEncoding())); osl::File::getFileURLFromSystemPath(ustrSystemPath, data); - osl::File::getAbsoluteFileURL(sWorkingDir, data, data); + (void)osl::File::getAbsoluteFileURL(sWorkingDir, data, data); } path(const std::string &FileURL) { commit aab3c9be2234049cf848ddce57ccd507edd26e0e Author: Caolán McNamara <[email protected]> AuthorDate: Thu Jul 18 11:21:22 2019 +0100 Commit: Caolán McNamara <[email protected]> CommitDate: Fri Jul 19 09:42:48 2019 +0200 cid#1448527 Unchecked return value Change-Id: I024b2cc088027cfb74dc009220e75e24b7228ea2 Reviewed-on: https://gerrit.libreoffice.org/75902 Tested-by: Jenkins Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Caolán McNamara <[email protected]> diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index f7a619b6f3be..4e054f673ca0 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -5181,8 +5181,10 @@ sal_Int32 PDFWriterImpl::emitOutputIntent() bool written = writeBuffer( aBuffer.data(), static_cast<sal_Int32>(aBuffer.size()) ); disableStreamEncryption(); endCompression(); + sal_uInt64 nEndStreamPos = 0; - m_aFile.getPos(nEndStreamPos); + if (m_aFile.getPos(nEndStreamPos) != osl::File::E_None) + return 0; if( !written ) return 0; _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
