Verified Commit 25214d02 authored by Jonah Brüchert's avatar Jonah Brüchert 🌳

Clean up c++ code

parent bba91154
......@@ -41,7 +41,7 @@ public:
private:
QString m_url;
bool m_isMobile;
bool m_isMobile = true;
};
class TabsModel : public QAbstractListModel
......
......@@ -45,7 +45,7 @@ bool UrlObserver::bookmarked() const
return m_bookmarked;
}
void UrlObserver::onDatabaseTableChanged(QString table)
void UrlObserver::onDatabaseTableChanged(const QString &table)
{
if (table != QStringLiteral("bookmarks"))
return;
......
......@@ -44,7 +44,7 @@ signals:
void bookmarkedChanged(bool bookmarked);
private:
void onDatabaseTableChanged(QString table);
void onDatabaseTableChanged(const QString &table);
void updateBookmarked();
private:
......
......@@ -5,6 +5,7 @@
UserAgent::UserAgent(QObject *parent)
: QObject(parent)
, m_isMobile(true)
{
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment