LeechCraft
0.6.70-17609-g3dde4097dd
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
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
namespace
LC
13
{
14
QDebug
operator<<
(QDebug debug,
const
QDomDocument::ParseResult& result)
15
{
16
QDebugStateSaver saver { debug };
17
if
(result)
18
debug <<
"success"
;
19
else
20
debug.nospace () <<
"failed at "
21
<< result.errorLine <<
":"
<< result.errorColumn
22
<<
": "
<< result.errorMessage;
23
return
debug;
24
}
25
}
debugprinters.h
LC
Definition
constants.h:15
LC::operator<<
QDebug operator<<(QDebug debug, const QDomDocument::ParseResult &result)
Definition
debugprinters.cpp:14
src
util
sll
debugprinters.cpp
Generated by
1.14.0