From eb74cc322125087c3cee58282be0ac38dd7ec052 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 16 Oct 2013 07:17:45 +0000 Subject: fixed build warning git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3794 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/streambrowser/streamwindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/plugins/General/streambrowser/streamwindow.cpp') diff --git a/src/plugins/General/streambrowser/streamwindow.cpp b/src/plugins/General/streambrowser/streamwindow.cpp index cfebc3469..83efe1dc5 100644 --- a/src/plugins/General/streambrowser/streamwindow.cpp +++ b/src/plugins/General/streambrowser/streamwindow.cpp @@ -350,8 +350,13 @@ void StreamWindow::readXml(QIODevice *input, QStandardItemModel *model) server_type += xml.text().toString(); } } + if (xml.error() && xml.error() != QXmlStreamReader::PrematureEndOfDocumentError) { +#ifdef Q_OS_WIN + qWarning("StreamWindow: xml error: %d: %s", (int)xml.lineNumber(), qPrintable(xml.errorString())); +#else qWarning("StreamWindow: xml error: %lld: %s", xml.lineNumber(), qPrintable(xml.errorString())); +#endif } } -- cgit v1.2.3-13-gbd6f