aboutsummaryrefslogtreecommitdiff
path: root/lib/bookmarks
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-06-22 10:53:47 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-06-22 10:53:47 +0200
commit2c9b2c35356caf4fd8213cff7e599a7c49346ac2 (patch)
tree2cc1f5cd5b115ff40af5ee48ab3cb785bacbbf2b /lib/bookmarks
parentUpdate manpage (diff)
downloadsmolbote-2c9b2c35356caf4fd8213cff7e599a7c49346ac2.tar.xz
Fix various warnings
Diffstat (limited to 'lib/bookmarks')
-rw-r--r--lib/bookmarks/bookmarkswidget.cpp1
-rw-r--r--lib/bookmarks/xbel.cpp4
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/bookmarks/bookmarkswidget.cpp b/lib/bookmarks/bookmarkswidget.cpp
index a027518..c46c420 100644
--- a/lib/bookmarks/bookmarkswidget.cpp
+++ b/lib/bookmarks/bookmarkswidget.cpp
@@ -42,6 +42,7 @@ BookmarksWidget::BookmarksWidget(const QString &path, QWidget *parent)
// open bookmark action
connect(ui->treeWidget, &QTreeWidget::itemActivated, this, [this](QTreeWidgetItem *item, int column) {
+ Q_UNUSED(column);
if(ui->treeWidget->itemType(item) == BookmarksView::Bookmark)
emit openUrl(QUrl::fromUserInput(item->text(1)));
});
diff --git a/lib/bookmarks/xbel.cpp b/lib/bookmarks/xbel.cpp
index 0f84447..cd17f2d 100644
--- a/lib/bookmarks/xbel.cpp
+++ b/lib/bookmarks/xbel.cpp
@@ -70,14 +70,16 @@ void writeChildElements(QXmlStreamWriter &writer, BookmarksView *treeWidget, QTr
}
writer.writeEndElement();
-
break;
+
case BookmarksView::Bookmark:
writer.writeStartElement("bookmark");
writer.writeAttribute("href", parentItem->text(1));
writer.writeTextElement("title", parentItem->text(0));
writer.writeEndElement();
+ break;
+ case BookmarksView::Invalid:
break;
}
}