Skip to content
Snippets Groups Projects
Commit a53989dc authored by Carsten Gräser's avatar Carsten Gräser
Browse files

[utility][cleanup] Use make_unique

parent 2c824b34
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,7 @@
#include <new>
#include <dune/common/exceptions.hh>
#include <dune/common/std/memory.hh>
namespace Dune {
......@@ -90,8 +91,7 @@ namespace Dune {
std::unique_ptr<char[]> dynamicBuffer;
try {
dynamicBuffer = std::unique_ptr<char[]>(new char[dynamicBufferSize]());
// dynamicBuffer = Dune::Std::make_unique<char[]>(dynamicBufferSize);
dynamicBuffer = Dune::Std::make_unique<char[]>(dynamicBufferSize);
}
catch (const std::bad_alloc&) {
DUNE_THROW(Dune::Exception,"Could allocate large enough dynamic buffer in formatString.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment