mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-21 08:09:35 +08:00
Fix C++11 compliance
Fix compiler error when compiling with -std=c++11 "invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]"
This commit is contained in:
parent
3f22bf1186
commit
bdb722893f
@ -69,7 +69,7 @@ class about : public QDialog, private Ui::AboutDlg{
|
||||
// Set icons
|
||||
logo->setPixmap(QPixmap(QString::fromUtf8(":/Icons/skin/qbittorrent22.png")));
|
||||
//Title
|
||||
lb_name->setText(QString::fromUtf8("<b><h1>qBittorrent")+QString::fromUtf8(" "VERSION"</h1></b>"));
|
||||
lb_name->setText(QString::fromUtf8("<b><h1>qBittorrent")+QString::fromUtf8(" " VERSION"</h1></b>"));
|
||||
// Thanks
|
||||
QString thanks_txt;
|
||||
thanks_txt += QString::fromUtf8("<p>I would first like to thank sourceforge.net for hosting qBittorrent project and for their support.</p>");
|
||||
|
@ -76,7 +76,7 @@ void DNSUpdater::checkPublicIP()
|
||||
m_lastIPCheckTime = QDateTime::currentDateTime();
|
||||
QNetworkRequest request;
|
||||
request.setUrl(QUrl("http://checkip.dyndns.org"));
|
||||
request.setRawHeader("User-Agent", "qBittorrent/"VERSION" chris@qbittorrent.org");
|
||||
request.setRawHeader("User-Agent", "qBittorrent/" VERSION" chris@qbittorrent.org");
|
||||
manager->get(request);
|
||||
}
|
||||
|
||||
@ -123,7 +123,7 @@ void DNSUpdater::updateDNSService()
|
||||
m_lastIPCheckTime = QDateTime::currentDateTime();
|
||||
QNetworkRequest request;
|
||||
request.setUrl(getUpdateUrl());
|
||||
request.setRawHeader("User-Agent", "qBittorrent/"VERSION" chris@qbittorrent.org");
|
||||
request.setRawHeader("User-Agent", "qBittorrent/" VERSION" chris@qbittorrent.org");
|
||||
manager->get(request);
|
||||
}
|
||||
|
||||
|
@ -421,7 +421,7 @@ void QBtSession::configureSession() {
|
||||
}
|
||||
// * Session settings
|
||||
session_settings sessionSettings = s->settings();
|
||||
sessionSettings.user_agent = "qBittorrent "VERSION;
|
||||
sessionSettings.user_agent = "qBittorrent " VERSION;
|
||||
//std::cout << "HTTP user agent is " << sessionSettings.user_agent << std::endl;
|
||||
logger->addMessage(tr("HTTP user agent is %1").arg(misc::toQString(sessionSettings.user_agent)));
|
||||
|
||||
|
@ -83,7 +83,7 @@ void TorrentCreatorThread::sendProgressSignal(int progress) {
|
||||
|
||||
void TorrentCreatorThread::run() {
|
||||
emit updateProgress(0);
|
||||
QString creator_str("qBittorrent "VERSION);
|
||||
QString creator_str("qBittorrent " VERSION);
|
||||
try {
|
||||
file_storage fs;
|
||||
// Adding files to the torrent
|
||||
|
Loading…
Reference in New Issue
Block a user