diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-10-19 12:57:53 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-10-19 22:25:11 +0200 |
commit | 39bbc2230d7cb9609954d90a9a471c2f9574185c (patch) | |
tree | be8820fecd3a1182e00e01360baa8312ba1e25ce /shell | |
parent | 2bb1a0bf95570b205e181235bb906eaadc949318 (diff) |
new throws on failure
Change-Id: Ida6250fc01e0bf156a81030c2f393838ced423fe
Reviewed-on: https://gerrit.libreoffice.org/61998
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'shell')
-rw-r--r-- | shell/source/win32/zipfile/zipfile.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/source/win32/zipfile/zipfile.cxx b/shell/source/win32/zipfile/zipfile.cxx index f7f8ccd23806..6ab62d5f94ce 100644 --- a/shell/source/win32/zipfile/zipfile.cxx +++ b/shell/source/win32/zipfile/zipfile.cxx @@ -405,7 +405,7 @@ ZipFile::ZipFile(const std::wstring &FileName) : m_bShouldFree(true) { m_pStream = new FileStream(FileName.c_str()); - if (m_pStream && !isZipStream(m_pStream)) + if (!isZipStream(m_pStream)) { delete m_pStream; m_pStream = nullptr; |