diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-20 08:52:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-20 09:51:42 +0200 |
commit | 05f67637fc4f71750dda46fccf0bed5b3fd99233 (patch) | |
tree | c5221d056688a87607ffe9e86521a606eb7fa956 /sal/osl/w32 | |
parent | 67a0889450daa6b9c9c799dab2d9da3a5044cb5d (diff) |
new cannot return nullptr
unless we are using std::nothrow
Change-Id: I3bdd13c8ce18f4e977f18ee5196311bf4fc62de0
Reviewed-on: https://gerrit.libreoffice.org/38998
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sal/osl/w32')
-rw-r--r-- | sal/osl/w32/file.cxx | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sal/osl/w32/file.cxx b/sal/osl/w32/file.cxx index d7ef5623cd4e..97f6d8fe6d33 100644 --- a/sal/osl/w32/file.cxx +++ b/sal/osl/w32/file.cxx @@ -677,12 +677,6 @@ SAL_CALL osl_createFileHandleFromOSHandle ( return nullptr; // EINVAL FileHandle_Impl * pImpl = new FileHandle_Impl(hFile); - if (pImpl == nullptr) - { - // cleanup and fail - (void) ::CloseHandle(hFile); - return nullptr; // ENOMEM - } /* check for regular file */ if (FILE_TYPE_DISK == GetFileType(hFile)) |