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/urlbar/urlbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/urlbar') diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp index 0d17f6cf..17ba4bb9 100644 --- a/src/urlbar/urlbar.cpp +++ b/src/urlbar/urlbar.cpp @@ -510,7 +510,7 @@ IconButton *UrlBar::addRightIcon(UrlBar::icon ic) rightIcon->setToolTip(i18n("Remove from favorite")); break; default: - kDebug() << "ERROR.. default non extant case!!"; + ASSERT_NOT_REACHED("ERROR.. default non extant case!!"); break; } -- cgit v1.2.1