From adb537614fe2c4277ba3aa7682316c6929191443 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 5 Sep 2024 18:33:07 -0300 Subject: [PATCH] Always prefer unique_ptr over shared_ptr --- src/app/commands/cmd_paste.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/commands/cmd_paste.cpp b/src/app/commands/cmd_paste.cpp index d698a4e5d..fce3a3ee1 100644 --- a/src/app/commands/cmd_paste.cpp +++ b/src/app/commands/cmd_paste.cpp @@ -14,6 +14,8 @@ #include "app/commands/params.h" #include "app/ui/input_chain.h" +#include + namespace app { class PasteCommand : public Command { @@ -25,7 +27,7 @@ protected: bool onEnabled(Context* ctx) override; void onExecute(Context* ctx) override; private: - std::shared_ptr m_position; + std::unique_ptr m_position; }; PasteCommand::PasteCommand()