summaryrefslogtreecommitdiff
path: root/src/bookmarks
diff options
context:
space:
mode:
authorPierre Rossi <pierre.rossi@gmail.com>2011-07-28 11:04:07 +0200
committerAndrea Diamantini <adjam7@gmail.com>2011-07-28 11:04:07 +0200
commite9770b468474dbb1e2774d76b5309d729f35f4b8 (patch)
tree04c1056aa45f8e823ba398efbf68a3c99208fc58 /src/bookmarks
parentMerge branch 'HOOKS' (diff)
downloadrekonq-e9770b468474dbb1e2774d76b5309d729f35f4b8.tar.xz
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
Diffstat (limited to 'src/bookmarks')
-rw-r--r--src/bookmarks/bookmarkowner.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bookmarks/bookmarkowner.cpp b/src/bookmarks/bookmarkowner.cpp
index b15bf28b..40b070dd 100644
--- a/src/bookmarks/bookmarkowner.cpp
+++ b/src/bookmarks/bookmarkowner.cpp
@@ -96,6 +96,7 @@ KAction* BookmarkOwner::createAction(const KBookmark &bookmark, const BookmarkAc
return createAction(i18n("Unset this folder as the toolbar folder"), "bookmark-toolbar",
"", SLOT(unsetToolBarFolder()), bookmark);
default:
+ ASSERT_NOT_REACHED();
return 0;
}
}