From a38e46d2415bc19d8dd2f3157bfd4ead66e9c7f7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 19 Jul 2022 09:55:47 -0400 Subject: Use std::make_unique --- .clang-tidy | 1 - NEWS | 3 ++- src/CanvasModule.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index 1e0353f..0ac64c4 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -42,7 +42,6 @@ Checks: > -llvm-header-guard, -llvmlibc-*, -misc-no-recursion, - -modernize-make-unique, -modernize-use-default-member-init, -modernize-use-nodiscard, -modernize-use-trailing-return-type, diff --git a/NEWS b/NEWS index 6ba0133..9dc3814 100644 --- a/NEWS +++ b/NEWS @@ -1,8 +1,9 @@ patchage (1.0.7) unstable; + * Switch to C++17 and modernize code * Switch to meson build system - -- David Robillard Tue, 19 Jul 2022 17:37:21 +0000 + -- David Robillard Tue, 19 Jul 2022 17:38:10 +0000 patchage (1.0.6) stable; diff --git a/src/CanvasModule.cpp b/src/CanvasModule.cpp index eddc261..d3908df 100644 --- a/src/CanvasModule.cpp +++ b/src/CanvasModule.cpp @@ -84,7 +84,7 @@ CanvasModule::update_menu() bool CanvasModule::show_menu(GdkEventButton* ev) { - _menu = std::unique_ptr{new Gtk::Menu()}; + _menu = std::make_unique(); Gtk::Menu::MenuList& items = _menu->items(); -- cgit v1.2.1