From 5b0bf616401624e28ba1c0e94e474c2da2e6350a Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 17 Apr 2012 08:01:25 +0200 Subject: qtcassert: move actual printing to separate function and enforce style This also allows simple setting of breakpoints on failed asserts. Change-Id: I6dd84cbfaf659d57e39f3447386cebc0221b2b84 Reviewed-by: Daniel Teske --- src/plugins/cpaster/codepasterprotocol.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/cpaster/codepasterprotocol.cpp') diff --git a/src/plugins/cpaster/codepasterprotocol.cpp b/src/plugins/cpaster/codepasterprotocol.cpp index 2d720e872f..bf677fe092 100644 --- a/src/plugins/cpaster/codepasterprotocol.cpp +++ b/src/plugins/cpaster/codepasterprotocol.cpp @@ -99,7 +99,7 @@ bool CodePasterProtocol::checkConfiguration(QString *errorMessage) void CodePasterProtocol::fetch(const QString &id) { - QTC_ASSERT(!m_fetchReply, return; ) + QTC_ASSERT(!m_fetchReply, return); QString hostName = m_page->hostName(); const QString httpPrefix = QLatin1String("http://"); @@ -124,7 +124,7 @@ void CodePasterProtocol::fetch(const QString &id) void CodePasterProtocol::list() { - QTC_ASSERT(!m_listReply, return; ) + QTC_ASSERT(!m_listReply, return); QString hostName = m_page->hostName(); QString link = QLatin1String("http://"); @@ -140,7 +140,7 @@ void CodePasterProtocol::paste(const QString &text, const QString &comment, const QString &description) { - QTC_ASSERT(!m_pasteReply, return; ) + QTC_ASSERT(!m_pasteReply, return); const QString hostName = m_page->hostName(); QByteArray data = "command=processcreate&submit=submit&highlight_type=0&description="; -- cgit v1.2.1