diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-06-04 13:43:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-04 20:42:45 +0200 |
commit | 8511ee5cd11a5143a4476c0152f0ede0f2b6b87e (patch) | |
tree | c91b057fd2f08875a04d45c0cb5c2fd8f029a04f /onlineupdate/source | |
parent | c4ac732d8132b36b3817e65d2651599ebe16a7f2 (diff) |
no need to construct unique_ptr here
and std::move is not needed when returning unique_ptr
Change-Id: I9b4d2d6b8a41b570a9bd99e44a743ff161b78c59
Reviewed-on: https://gerrit.libreoffice.org/38385
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'onlineupdate/source')
-rw-r--r-- | onlineupdate/source/update/updater/updater.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/onlineupdate/source/update/updater/updater.cxx b/onlineupdate/source/update/updater/updater.cxx index cd63539edfb4..f1800448087f 100644 --- a/onlineupdate/source/update/updater/updater.cxx +++ b/onlineupdate/source/update/updater/updater.cxx @@ -1134,7 +1134,7 @@ RemoveFile::Parse(NS_tchar *line) if (!validPath) return PARSE_ERROR; - mRelPath = std::unique_ptr<NS_tchar>(new NS_tchar[MAXPATHLEN]); + mRelPath.reset(new NS_tchar[MAXPATHLEN]); NS_tstrcpy(mRelPath.get(), validPath); mFile.reset(get_full_path(validPath)); @@ -1261,7 +1261,7 @@ RemoveDir::Parse(NS_tchar *line) NS_tchar* validPath = get_valid_path(&line, true); if (!validPath) return PARSE_ERROR; - mRelPath = std::unique_ptr<NS_tchar>(new NS_tchar[MAXPATHLEN]); + mRelPath.reset(new NS_tchar[MAXPATHLEN]); NS_tstrcpy(mRelPath.get(), validPath); mDir.reset(get_full_path(validPath)); @@ -1386,7 +1386,7 @@ AddFile::Parse(NS_tchar *line) if (!validPath) return PARSE_ERROR; - mRelPath = std::unique_ptr<NS_tchar>(new NS_tchar[MAXPATHLEN]); + mRelPath.reset(new NS_tchar[MAXPATHLEN]); NS_tstrcpy(mRelPath.get(), validPath); @@ -1582,7 +1582,7 @@ PatchFile::Parse(NS_tchar *line) NS_tchar* validPath = get_valid_path(&line); if (!validPath) return PARSE_ERROR; - mFileRelPath = std::unique_ptr<NS_tchar>(new NS_tchar[MAXPATHLEN]); + mFileRelPath.reset(new NS_tchar[MAXPATHLEN]); NS_tstrcpy(mFileRelPath.get(), validPath); mFile.reset(get_full_path(validPath)); |