summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-07-19 09:55:47 -0400
committerDavid Robillard <d@drobilla.net>2022-07-20 10:35:32 -0400
commita38e46d2415bc19d8dd2f3157bfd4ead66e9c7f7 (patch)
treecc490d234b7983027448b4544acbe28152ac7f56
parent808a0cbc8d47f2c77fc69f2ad850d2e91dc9ca21 (diff)
downloadpatchage-a38e46d2415bc19d8dd2f3157bfd4ead66e9c7f7.tar.gz
patchage-a38e46d2415bc19d8dd2f3157bfd4ead66e9c7f7.tar.bz2
patchage-a38e46d2415bc19d8dd2f3157bfd4ead66e9c7f7.zip
Use std::make_unique
-rw-r--r--.clang-tidy1
-rw-r--r--NEWS3
-rw-r--r--src/CanvasModule.cpp2
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 <d@drobilla.net> Tue, 19 Jul 2022 17:37:21 +0000
+ -- David Robillard <d@drobilla.net> 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<Gtk::Menu>{new Gtk::Menu()};
+ _menu = std::make_unique<Gtk::Menu>();
Gtk::Menu::MenuList& items = _menu->items();