diff --git a/main.cpp b/main.cpp index ef7fc6dd..5c17c2b1 100644 --- a/main.cpp +++ b/main.cpp @@ -4,8 +4,8 @@ class A: public PIObject { PIOBJECT(A) public: A() {} - EVENT_HANDLER1(void, handlerA1, PIString, s) {piCout << "handlerA1 s" << s;} EVENT_HANDLER1(void, handlerA1, float, f) {piCout << "handlerA1 f" << f;} + EVENT_HANDLER1(void, handlerA2, PIString, s) {piCout << "handlerA2 s" << s;} //uchar _[0x10]; }; @@ -23,7 +23,7 @@ int main() { A a; B b; CONNECTU(&b, eventB1, &a, handlerA1) - CONNECTU(&b, eventB2, &a, handlerA1) + CONNECTU(&b, eventB2, &a, handlerA2) a.dump(); b.dump(); b.eventB1(0.33); diff --git a/src_main/console/piscreen.h b/src_main/console/piscreen.h index 9fac189d..63765f1e 100644 --- a/src_main/console/piscreen.h +++ b/src_main/console/piscreen.h @@ -127,7 +127,7 @@ private: PRIVATE_DECLARATION int width, height, pwidth, pheight; int mouse_x, mouse_y; - PIVector > cells, pcells, dcells; + PIVector > cells, pcells; }; void begin();