summaryrefslogtreecommitdiff
path: root/src/bookmarks
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-08-20 16:51:26 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-08-20 16:51:26 +0200
commit4799cf30869ea5e98cdbc74060d237181af6a20b (patch)
tree715c8be38489ea79083db18bd278a654d2627601 /src/bookmarks
parentFixed tooltip in the bookmarks panel (diff)
downloadrekonq-4799cf30869ea5e98cdbc74060d237181af6a20b.tar.xz
cppcheck: reduce variable scope
Diffstat (limited to 'src/bookmarks')
-rw-r--r--src/bookmarks/bookmarksmanager.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bookmarks/bookmarksmanager.cpp b/src/bookmarks/bookmarksmanager.cpp
index 0c3284bb..e68751c0 100644
--- a/src/bookmarks/bookmarksmanager.cpp
+++ b/src/bookmarks/bookmarksmanager.cpp
@@ -306,11 +306,10 @@ void BookmarkProvider::slotPanelChanged()
KBookmark BookmarkProvider::bookmarkForUrl(const KUrl &url)
{
- KBookmark found;
-
KBookmarkGroup root = rootGroup();
if (root.isNull())
{
+ KBookmark found;
return found;
}