mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-05 09:40:02 +00:00
Always prefer unique_ptr over shared_ptr
This commit is contained in:
parent
e70bbbd369
commit
adb537614f
@ -14,6 +14,8 @@
|
||||
#include "app/commands/params.h"
|
||||
#include "app/ui/input_chain.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
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<gfx::Point> m_position;
|
||||
std::unique_ptr<gfx::Point> m_position;
|
||||
};
|
||||
|
||||
PasteCommand::PasteCommand()
|
||||
|
Loading…
x
Reference in New Issue
Block a user