TQSampleVisitor::callVisit() return value
The TQSampleVisitor sometimes returns the number of samples visited and sometimes returns the status code. See the lines
https://gitlab.cern.ch/atlas-caf/CAFCore/blob/b3db83f8/QFramework/Root/TQSampleVisitor.cxx#L276
https://gitlab.cern.ch/atlas-caf/CAFCore/blob/b3db83f8/QFramework/Root/TQSampleVisitor.cxx#L282
https://gitlab.cern.ch/atlas-caf/CAFCore/blob/b3db83f8/QFramework/Root/TQSampleVisitor.cxx#L342
There's also a typo in the last line, where the if statement always evaluates to true, because visitIGNORE=9.
Edited by Konstantin Lehmann