LeechCraft  0.6.70-18450-gabe19ee3b0
Modular cross-platform feature rich live environment.
debugprinters.cpp
Go to the documentation of this file.
1 /**********************************************************************
2  * LeechCraft - modular cross-platform feature rich internet client.
3  * Copyright (C) 2006-2014 Georg Rudoy
4  *
5  * Distributed under the Boost Software License, Version 1.0.
6  * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7  **********************************************************************/
8 
9 #include "debugprinters.h"
10 #include <QtDebug>
11 
12 QDebug operator<< (QDebug debug, const QDomDocument::ParseResult& result)
13 {
14  QDebugStateSaver saver { debug };
15  if (result)
16  debug << "success";
17  else
18  debug.nospace () << "failed at "
19  << result.errorLine << ":" << result.errorColumn
20  << ": " << result.errorMessage;
21  return debug;
22 }
QDebug operator<<(QDebug debug, const QDomDocument::ParseResult &result)