jonnydee / nzmqt

nzmqt - A lightweight C++ Qt binding for ZeroMQ
Other
199 stars 72 forks source link

Trigger the messageReceived signal directly, instead of using a trampoline #42

Closed jonesmz closed 7 years ago

jonesmz commented 7 years ago

Qt allows a signal to be called directly as if it were a function call, and the result is the same as "emit signalNameHere(args here)"

In fact, the "emit" keyword just expands to a single space as far as the c++ preprocessor is concerned. Or at least that was the case at one point. I'm pretty sure it's still the case.

This change passes the nzmqt_test app as my others do.

jonnydee commented 7 years ago

Thanks again :-)