aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/streambrowser/streamwindow.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2013-10-16 07:17:45 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2013-10-16 07:17:45 +0000
commiteb74cc322125087c3cee58282be0ac38dd7ec052 (patch)
tree2b85e19875c20ca6c866f45d46d50e7e2489ef5f /src/plugins/General/streambrowser/streamwindow.cpp
parent8878f195f0b3882396e2a18f916f75194b8ea85d (diff)
downloadqmmp-eb74cc322125087c3cee58282be0ac38dd7ec052.tar.gz
qmmp-eb74cc322125087c3cee58282be0ac38dd7ec052.tar.bz2
qmmp-eb74cc322125087c3cee58282be0ac38dd7ec052.zip
fixed build warning
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3794 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/streambrowser/streamwindow.cpp')
-rw-r--r--src/plugins/General/streambrowser/streamwindow.cpp5
1 files changed, 5 insertions, 0 deletions
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
}
}