diff --git a/src/gui/interact/invocation-trail.hpp b/src/gui/interact/invocation-trail.hpp index 77948cbca..a01d1e35d 100644 --- a/src/gui/interact/invocation-trail.hpp +++ b/src/gui/interact/invocation-trail.hpp @@ -52,11 +52,6 @@ #include -/** @todo unused as of 11/2015 - * some additional instantiation metadata - * could be passed alongside with the invocation. - */ -#define RESERVED_FOR_FUTURE_USE_ 42 namespace gui { @@ -103,9 +98,17 @@ namespace interact { GenNode bang() const { - return GenNode(cmdID_, RESERVED_FOR_FUTURE_USE_); + return GenNode(cmdID_, int(DO_IT)); } + + /** @todo unused as of 11/2015 + * some additional instantiation metadata + * could be passed alongside with the invocation. */ + enum { DO_IT = 42 }; + + + string getID() const { diff --git a/tests/gui/abstract-tangible-test.cpp b/tests/gui/abstract-tangible-test.cpp index d71d2e78c..12c857ffa 100644 --- a/tests/gui/abstract-tangible-test.cpp +++ b/tests/gui/abstract-tangible-test.cpp @@ -344,7 +344,7 @@ namespace test { CHECK (dummyState == concreteParam); // command was indeed invoked CHECK (nexusLog.verifyCall("act").arg("«int»|" +toString(concreteParam)) - .beforeCall("act").arg("DataCap|«int»|")); + .beforeCall("act").arg("DataCap|«int»|" +toString(int(InvocationTrail::DO_IT)))); CHECK (nexusLog.verifyEvent("binding for command \""+DUMMY_CMD_ID) .beforeEvent("invoke command \""+DUMMY_CMD_ID));