OTCaller::~OTCaller() { otOut << "OTCaller::~OTCaller: (This should only happen as the application " "is closing.)\n"; delCallback(); }
void OTCaller::setCallback(OTCallback *cb) { OTLog::Output(0, "OTCaller::setCallback: Attempting to set the password OTCallback pointer...\n"); if (NULL == cb) { OTLog::Output(0, "OTCaller::setCallback: ERROR: NULL password OTCallback object passed in. (Returning.)\n"); return; } delCallback(); // Sets _callback to NULL, but LOGS first, if it was already set. // ----------------------------- _callback = cb; OTLog::Output(0, "OTCaller::setCallback: FYI, the password OTCallback pointer was set.\n"); }
void OTCaller::setCallback(OTCallback* cb) { otOut << "OTCaller::setCallback: Attempting to set the password OTCallback " "pointer...\n"; if (nullptr == cb) { otOut << "OTCaller::setCallback: ERROR: nullptr password OTCallback " "object passed in. (Returning.)\n"; return; } delCallback(); // Sets _callback to nullptr, but LOGS first, if it was // already // set. _callback = cb; otOut << "OTCaller::setCallback: FYI, the password OTCallback pointer was " "set.\n"; }
OTCaller::~OTCaller() { OTLog::vOutput(0, "OTCaller::~OTCaller: (This should only happen as the application is closing.)\n"); delCallback(); }