diff options
author | hjk <hjk@qt.io> | 2019-07-23 10:58:00 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-07-23 11:55:59 +0000 |
commit | 251287f0d35dd82e68dabed8214ef8af893aff91 (patch) | |
tree | a3ba843c1c23f4aea06bc01bf7ab0dd69d6fc741 /src/plugins/cpaster | |
parent | 2b26eca80f9ebcdc2f1dc0d890a39a4fbc2d129c (diff) |
Avoid warning on empty expressions
For some reason, Q_UNUSED includes already a semicolon, adding one
on the user side creates an additional empty statement.
Change-Id: I9c5e8fac381345a60792cb75e2938fd53958d3b0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/cpaster')
-rw-r--r-- | src/plugins/cpaster/pastebindotcomprotocol.cpp | 4 | ||||
-rw-r--r-- | src/plugins/cpaster/pastecodedotxyzprotocol.cpp | 2 | ||||
-rw-r--r-- | src/plugins/cpaster/stickynotespasteprotocol.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/cpaster/pastebindotcomprotocol.cpp b/src/plugins/cpaster/pastebindotcomprotocol.cpp index 86ae8f3f97c..fb3d60ba92d 100644 --- a/src/plugins/cpaster/pastebindotcomprotocol.cpp +++ b/src/plugins/cpaster/pastebindotcomprotocol.cpp @@ -105,8 +105,8 @@ void PasteBinDotComProtocol::paste(const QString &text, const QString &comment, const QString &description) { - Q_UNUSED(comment); - Q_UNUSED(description); + Q_UNUSED(comment) + Q_UNUSED(description) QTC_ASSERT(!m_pasteReply, return); // Format body diff --git a/src/plugins/cpaster/pastecodedotxyzprotocol.cpp b/src/plugins/cpaster/pastecodedotxyzprotocol.cpp index 5bd2b869ad1..8ca7d5c5474 100644 --- a/src/plugins/cpaster/pastecodedotxyzprotocol.cpp +++ b/src/plugins/cpaster/pastecodedotxyzprotocol.cpp @@ -86,7 +86,7 @@ void PasteCodeDotXyzProtocol::paste(const QString &text, Protocol::ContentType c return QByteArray(); // Crutch for compiler. }; data += "&lang=" + langValue(ct); - Q_UNUSED(comment); + Q_UNUSED(comment) QNetworkReply * const reply = httpPost(apiUrl() + "/create", data); connect(reply, &QNetworkReply::finished, this, [this, reply] { diff --git a/src/plugins/cpaster/stickynotespasteprotocol.cpp b/src/plugins/cpaster/stickynotespasteprotocol.cpp index 3ec958d99c3..9c8ad232eb8 100644 --- a/src/plugins/cpaster/stickynotespasteprotocol.cpp +++ b/src/plugins/cpaster/stickynotespasteprotocol.cpp @@ -106,7 +106,7 @@ void StickyNotesPasteProtocol::paste(const QString &text, enum { maxDescriptionLength = 30 }; // Length of description is limited. Q_UNUSED(username) - Q_UNUSED(comment); + Q_UNUSED(comment) QTC_ASSERT(!m_pasteReply, return); // Format body |