summaryrefslogtreecommitdiff
path: root/src/urlbar
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-01-14 22:21:53 +0100
committerAndrea Diamantini <adjam7@gmail.com>2013-01-14 22:21:53 +0100
commita3e2208ae3b2190b3f176a7cf52d65bb4d42d82d (patch)
tree3fcd2e8365a0b2d0f75635fd0a2c36a5469c38f3 /src/urlbar
parentPrevent uglyfying URL in suggest list (diff)
downloadrekonq-a3e2208ae3b2190b3f176a7cf52d65bb4d42d82d.tar.xz
Coverity report fixes
A potential crash (dynamic_cast maybe null) Some break usage clean up minor string speed up by using QLatin1String
Diffstat (limited to 'src/urlbar')
-rw-r--r--src/urlbar/bookmarkwidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/urlbar/bookmarkwidget.cpp b/src/urlbar/bookmarkwidget.cpp
index e266a071..fc3139d0 100644
--- a/src/urlbar/bookmarkwidget.cpp
+++ b/src/urlbar/bookmarkwidget.cpp
@@ -64,6 +64,8 @@
BookmarkWidget::BookmarkWidget(const KBookmark &bookmark, QWidget *parent)
: QMenu(parent)
, m_bookmark(new KBookmark(bookmark))
+ , m_tagLine(new KLineEdit(this))
+ , m_commentEdit(new QPlainTextEdit(this))
{
setAttribute(Qt::WA_DeleteOnClose);
setFixedWidth(320);
@@ -137,7 +139,6 @@ BookmarkWidget::BookmarkWidget(const KBookmark &bookmark, QWidget *parent)
QLabel *commentLabel = new QLabel(this);
commentLabel->setText(i18n("Describe:"));
commentLabel->setAlignment(Qt::AlignCenter);
- m_commentEdit = new QPlainTextEdit(this);
if (!m_nfoResource.description().isEmpty())
{
m_commentEdit->setPlainText(m_nfoResource.description());
@@ -149,7 +150,6 @@ BookmarkWidget::BookmarkWidget(const KBookmark &bookmark, QWidget *parent)
QLabel *tagLabel = new QLabel(this);
tagLabel->setText(i18n("Tags:"));
tagLabel->setAlignment(Qt::AlignLeft);
- m_tagLine = new KLineEdit(this);
m_tagLine->setPlaceholderText(i18n("add tags(comma separated)"));