Solving issue #5267 : "ProcEvent int() operator should be const"

This commit is contained in:
Hombre57
2019-04-09 08:45:21 +02:00
parent 56fff79e43
commit cb72769634

View File

@@ -532,7 +532,7 @@ public:
ProcEvent(): code_(0) {}
ProcEvent(ProcEventCode code): code_(code) {}
explicit ProcEvent(int code): code_(code) {}
operator int() { return code_; }
operator int() const { return code_; }
private:
int code_;