void Reporter::report(const QString &message, const QScopedPointer<utils::OutFile> &file) { if (!file.isNull()) { (*file)() << message; file->flush(); } }