Always prefer unique_ptr over shared_ptr

This commit is contained in:
David Capello 2024-09-05 18:33:07 -03:00
parent e70bbbd369
commit adb537614f

View File

@ -14,6 +14,8 @@
#include "app/commands/params.h" #include "app/commands/params.h"
#include "app/ui/input_chain.h" #include "app/ui/input_chain.h"
#include <memory>
namespace app { namespace app {
class PasteCommand : public Command { class PasteCommand : public Command {
@ -25,7 +27,7 @@ protected:
bool onEnabled(Context* ctx) override; bool onEnabled(Context* ctx) override;
void onExecute(Context* ctx) override; void onExecute(Context* ctx) override;
private: private:
std::shared_ptr<gfx::Point> m_position; std::unique_ptr<gfx::Point> m_position;
}; };
PasteCommand::PasteCommand() PasteCommand::PasteCommand()