From 05f67637fc4f71750dda46fccf0bed5b3fd99233 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 20 Jun 2017 08:52:10 +0200 Subject: new cannot return nullptr unless we are using std::nothrow Change-Id: I3bdd13c8ce18f4e977f18ee5196311bf4fc62de0 Reviewed-on: https://gerrit.libreoffice.org/38998 Tested-by: Jenkins Reviewed-by: Noel Grandin --- onlineupdate/source/update/updater/updater.cxx | 4 ---- 1 file changed, 4 deletions(-) (limited to 'onlineupdate/source') diff --git a/onlineupdate/source/update/updater/updater.cxx b/onlineupdate/source/update/updater/updater.cxx index d32e6916cb12..01ca1a2475a9 100644 --- a/onlineupdate/source/update/updater/updater.cxx +++ b/onlineupdate/source/update/updater/updater.cxx @@ -315,10 +315,6 @@ get_full_path(const NS_tchar *relpath) size_t lendestpath = NS_tstrlen(destpath); size_t lenrelpath = NS_tstrlen(relpath); NS_tchar *s = new NS_tchar[lendestpath + lenrelpath + 2]; - if (!s) - { - return nullptr; - } NS_tchar *c = s; -- cgit