diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-12 14:17:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-13 09:28:44 +0200 |
commit | 639df4d76d545ca23021f69a9d738a9a92c148cd (patch) | |
tree | 87b20ea1518f6a878102a367c211cb6f93c554fd /sal | |
parent | 9dce6f74b1b43293b40217c1163c8d4285251e97 (diff) |
use more std::make_unique
Change-Id: I7d85cbc9105c5e0c4a8d9a69c4ac9d6dfc07eabd
Reviewed-on: https://gerrit.libreoffice.org/70663
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/backtraceapi.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/unx/backtraceapi.cxx b/sal/osl/unx/backtraceapi.cxx index 07a315f36be2..ae1670c30b92 100644 --- a/sal/osl/unx/backtraceapi.cxx +++ b/sal/osl/unx/backtraceapi.cxx @@ -42,7 +42,7 @@ OUString osl::detail::backtraceAsString(sal_uInt32 maxDepth) { if (maxDepth > maxInt) { maxDepth = static_cast<sal_uInt32>(maxInt); } - auto b1 = std::unique_ptr<void *[]>(new void *[maxDepth]); + auto b1 = std::make_unique<void *[]>(maxDepth); int n = backtrace(b1.get(), static_cast<int>(maxDepth)); FreeGuard b2(backtrace_symbols(b1.get(), n)); b1.reset(); |