- Timestamp:
- Jan 10, 2016, 1:54:11 PM (9 years ago)
- Location:
- code/branches/cpp11_v3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v3
- Property svn:mergeinfo changed
-
code/branches/cpp11_v3/src/libraries/core/input/InputCommands.h
r9978 r11054 57 57 public: 58 58 BaseCommand() : bFixedKeybindMode_(false) {} 59 virtual ~BaseCommand() { }59 virtual ~BaseCommand() = default; 60 60 61 61 virtual bool execute(float abs = 1.0f, float rel = 1.0f) = 0; … … 76 76 { 77 77 public: 78 bool execute(float abs = 1.0f, float rel = 1.0f);79 CommandEvaluation* getEvaluation();80 virtual SimpleCommand* clone() { return new SimpleCommand(*this); }78 virtual bool execute(float abs = 1.0f, float rel = 1.0f) override; 79 virtual CommandEvaluation* getEvaluation() override; 80 virtual SimpleCommand* clone() override { return new SimpleCommand(*this); } 81 81 82 82 CommandEvaluation evaluation_; … … 103 103 { 104 104 public: 105 ParamCommand() : scale_(1.0f), paramCommand_( 0) { }106 bool execute(float abs = 1.0f, float rel = 1.0f);107 CommandEvaluation* getEvaluation();108 virtual ParamCommand* clone() { return new ParamCommand(*this); }105 ParamCommand() : scale_(1.0f), paramCommand_(nullptr) { } 106 virtual bool execute(float abs = 1.0f, float rel = 1.0f) override; 107 virtual CommandEvaluation* getEvaluation() override; 108 virtual ParamCommand* clone() override { return new ParamCommand(*this); } 109 109 110 110 float scale_; … … 118 118 return &this->paramCommand_->evaluation_; 119 119 else 120 return 0;120 return nullptr; 121 121 } 122 122 }
Note: See TracChangeset
for help on using the changeset viewer.