comparison main/Surveyer.cpp @ 665:17fe7e0c23a1

Drop std:: from cerr, cout, endl; drop toStdString etc; build fix
author Chris Cannam
date Tue, 26 Nov 2013 14:17:48 +0000
parents 55efa5a18814
children 7707d9175d55
comparison
equal deleted inserted replaced
664:b4a7c98e4c83 665:17fe7e0c23a1
52 // remain 0 forever. If the survey does exist, then we offer 52 // remain 0 forever. If the survey does exist, then we offer
53 // the user the chance to respond to it and (regardless of 53 // the user the chance to respond to it and (regardless of
54 // whether they want to or not) set the countdown to -1 so 54 // whether they want to or not) set the countdown to -1 so
55 // that it is never offered again. 55 // that it is never offered again.
56 QUrl url(QString("http://%1/%2").arg(m_hostname).arg(m_testPath)); 56 QUrl url(QString("http://%1/%2").arg(m_hostname).arg(m_testPath));
57 std::cerr << "Surveyer: Test URL is " << url << std::endl; 57 cerr << "Surveyer: Test URL is " << url << endl;
58 m_reply = m_nm->get(QNetworkRequest(url)); 58 m_reply = m_nm->get(QNetworkRequest(url));
59 connect(m_reply, SIGNAL(error(QNetworkReply::NetworkError)), 59 connect(m_reply, SIGNAL(error(QNetworkReply::NetworkError)),
60 this, SLOT(error(QNetworkReply::NetworkError))); 60 this, SLOT(error(QNetworkReply::NetworkError)));
61 connect(m_reply, SIGNAL(finished()), this, SLOT(finished())); 61 connect(m_reply, SIGNAL(finished()), this, SLOT(finished()));
62 } else if (countdown > 0) { 62 } else if (countdown > 0) {
75 } 75 }
76 76
77 void 77 void
78 Surveyer::error(QNetworkReply::NetworkError) 78 Surveyer::error(QNetworkReply::NetworkError)
79 { 79 {
80 std::cerr << "Surveyer: error: " << m_reply->errorString() << std::endl; 80 cerr << "Surveyer: error: " << m_reply->errorString() << endl;
81 m_httpFailed = true; 81 m_httpFailed = true;
82 } 82 }
83 83
84 void 84 void
85 Surveyer::finished() 85 Surveyer::finished()