diff options
author | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2013-08-21 15:51:07 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2013-08-22 13:23:34 +0200 |
commit | 6a561d943f2eb6c14aa959feeb24750a26cc70be (patch) | |
tree | 8fd6bd665994ee374df424bc357afb99e90c55b4 | |
parent | 799bd4607c6a7c5d99ba5ec7a2d5fc120d220a67 (diff) | |
download | qt-creator-6a561d943f2eb6c14aa959feeb24750a26cc70be.tar.gz |
Fix capitalization of "Pastebin.Com".
Task-number: QTCREATORBUG-9997
Change-Id: Ib9366aa49f4e7b83d76a05741f12afbac159013a
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
-rw-r--r-- | src/plugins/cpaster/pastebindotcomprotocol.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/cpaster/pastebindotcomprotocol.cpp b/src/plugins/cpaster/pastebindotcomprotocol.cpp index 4b0ded6d68..1873326b60 100644 --- a/src/plugins/cpaster/pastebindotcomprotocol.cpp +++ b/src/plugins/cpaster/pastebindotcomprotocol.cpp @@ -48,6 +48,8 @@ static const char PASTEBIN_ARCHIVE[]="archive"; static const char API_KEY[]="api_dev_key=516686fc461fb7f9341fd7cf2af6f829&"; // user: qtcreator_apikey +static const char PROTOCOL_NAME[] = "Pastebin.Com"; + namespace CodePaster { PasteBinDotComProtocol::PasteBinDotComProtocol() : m_fetchReply(0), @@ -61,7 +63,7 @@ PasteBinDotComProtocol::PasteBinDotComProtocol() : QString PasteBinDotComProtocol::protocolName() { - return QLatin1String("Pastebin.Com"); + return QLatin1String(PROTOCOL_NAME); } unsigned PasteBinDotComProtocol::capabilities() const @@ -141,7 +143,7 @@ void PasteBinDotComProtocol::paste(const QString &text, void PasteBinDotComProtocol::pasteFinished() { if (m_pasteReply->error()) - qWarning("Pastebin.com protocol error: %s", qPrintable(m_pasteReply->errorString())); + qWarning("%s protocol error: %s", PROTOCOL_NAME, qPrintable(m_pasteReply->errorString())); else emit pasteDone(QString::fromLatin1(m_pasteReply->readAll())); @@ -178,7 +180,7 @@ void PasteBinDotComProtocol::fetchFinished() if (debug) qDebug() << "fetchFinished: error" << m_fetchId << content; } else { - title = QString::fromLatin1("Pastebin.com: %1").arg(m_fetchId); + title = QLatin1String(PROTOCOL_NAME) + QLatin1String(": ") + m_fetchId; content = QString::fromLatin1(m_fetchReply->readAll()); // Cut out from '<pre>' formatting const int preEnd = content.lastIndexOf(QLatin1String("</pre>")); |