Mercurial > hg > svapp
comparison framework/VersionTester.cpp @ 229:8c13e8219903 debug-output
Convert many cerrs to DEBUGs
author | Chris Cannam |
---|---|
date | Mon, 16 May 2011 17:19:40 +0100 |
parents | 84b2c1a4984a |
children | 8aace2d9f1c2 |
comparison
equal
deleted
inserted
replaced
228:67cea66bd588 | 229:8c13e8219903 |
---|---|
17 Rosegarden MIDI and audio sequencer and notation editor. | 17 Rosegarden MIDI and audio sequencer and notation editor. |
18 This file copyright 2000-2009 Chris Cannam. | 18 This file copyright 2000-2009 Chris Cannam. |
19 */ | 19 */ |
20 | 20 |
21 #include "VersionTester.h" | 21 #include "VersionTester.h" |
22 #include "base/Debug.h" | |
22 | 23 |
23 #include <iostream> | 24 #include <iostream> |
24 | 25 |
25 #include <QHttp> | 26 #include <QHttp> |
26 | 27 |
85 QString str = QString::fromUtf8(responseData.data()); | 86 QString str = QString::fromUtf8(responseData.data()); |
86 QStringList lines = str.split('\n', QString::SkipEmptyParts); | 87 QStringList lines = str.split('\n', QString::SkipEmptyParts); |
87 if (lines.empty()) return; | 88 if (lines.empty()) return; |
88 | 89 |
89 QString latestVersion = lines[0]; | 90 QString latestVersion = lines[0]; |
90 std::cerr << "Comparing current version \"" << m_myVersion.toStdString() | 91 DEBUG << "Comparing current version \"" << m_myVersion << "\" with latest version \"" << latestVersion << "\"" << endl; |
91 << "\" with latest version \"" << latestVersion.toStdString() | |
92 << "\"" << std::endl; | |
93 if (isVersionNewerThan(latestVersion, m_myVersion)) { | 92 if (isVersionNewerThan(latestVersion, m_myVersion)) { |
94 emit newerVersionAvailable(latestVersion); | 93 emit newerVersionAvailable(latestVersion); |
95 } | 94 } |
96 } | 95 } |
97 | 96 |