summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorBenjamin Poulain <ikipou@gmail.com>2010-11-13 16:20:55 +0100
committerBenjamin Poulain <benjamin.poulain@nokia.com>2010-11-20 18:52:28 +0100
commit92747bf5699bac1a1b8b85b4b5b3f3902be767b5 (patch)
treed150910b172d9cfeb3bfb65935b736e1e3034a04 /src/webview.cpp
parentUpdate the name of WebView attribute to conform to the conventions (diff)
downloadrekonq-92747bf5699bac1a1b8b85b4b5b3f3902be767b5.tar.xz
Add an assertion to ensure the consistency of WebView during development
Reviewed by: Pierre Rossi Reviewed by: Andrea Diamantini
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index a609ead0..14373db9 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -134,7 +134,8 @@ WebView::~WebView()
WebPage *WebView::page()
{
- WebPage *page = qobject_cast<WebPage *>(KWebView::page());
+ WebPage *const page = qobject_cast<WebPage *>(KWebView::page());
+ Q_ASSERT(page);
return page;
}