From e9770b468474dbb1e2774d76b5309d729f35f4b8 Mon Sep 17 00:00:00 2001 From: Pierre Rossi Date: Thu, 28 Jul 2011 11:04:07 +0200 Subject: Introducing ASSERT_NOT_REACHED In a similar fashion as WebKit, this might make those cases where we don't expect to go more obvious in debug builds. I also took the liberty to revisit a lot of switch statements but it could potentially be used elsewhere Reviewed-by: andrea --- src/webpage.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/webpage.cpp') diff --git a/src/webpage.cpp b/src/webpage.cpp index a7baac6d..e9f71232 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -364,6 +364,7 @@ bool WebPage::acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &r break; default: + ASSERT_NOT_REACHED(); break; } } @@ -452,6 +453,7 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply) return; default: // non extant case + ASSERT_NOT_REACHED(); break; } } -- cgit v1.2.1