summaryrefslogtreecommitdiff
path: root/wx+/context_menu.h
diff options
context:
space:
mode:
Diffstat (limited to 'wx+/context_menu.h')
-rw-r--r--wx+/context_menu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/wx+/context_menu.h b/wx+/context_menu.h
index 2557737a..a498c429 100644
--- a/wx+/context_menu.h
+++ b/wx+/context_menu.h
@@ -28,7 +28,7 @@ namespace zen
class ContextMenu : private wxEvtHandler
{
public:
- ContextMenu() : menu(new wxMenu) {}
+ ContextMenu() : menu(zen::make_unique<wxMenu>()) {}
void addItem(const wxString& label, const std::function<void()>& command, const wxBitmap* bmp = nullptr, bool enabled = true)
{
bgstack15