Answer the question
In order to leave comments, you need to log in
Why does it compile and in general how does the place in the code work and what, was it possible (QSharedPointer)?
Good afternoon!
There is a code:
.....
typedef QSharedPointer<QDataStream> AnswerData;
.....
Executor::AnswerData Executor::sendSync(int timeout)
{
if ( !_serial->isConnected() ) return false;
.......
}
.......
double Heating::getCurrentTemp()
{
......
Executor::AnswerData data = _executer->sendSync();
......
if (!data) return -1;
......
}
Answer the question
In order to leave comments, you need to log in
It's not really clear why you do this. Try a clean example like:
QSharedPointer<QDataStream> doFoo()
{
return false;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question