summaryrefslogtreecommitdiff
path: root/src/urlbar
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2022-09-18 18:15:52 +0300
committeraqua <aqua@iserlohn-fortress.net>2022-09-18 18:15:52 +0300
commitf2c6ceb47a15e2a9de99ae9a0ed4d955d0356528 (patch)
treefccb1ed3f75a4f0304e5df107e732e5ab16aa949 /src/urlbar
parentAdd Navigation and Tab toolbars (diff)
downloadrekonq-f2c6ceb47a15e2a9de99ae9a0ed4d955d0356528.tar.xz
Fix compiler warnings
Diffstat (limited to 'src/urlbar')
-rw-r--r--src/urlbar/completer.cpp2
-rw-r--r--src/urlbar/completer.hpp1
-rw-r--r--src/urlbar/urlbar.cpp2
-rw-r--r--src/urlbar/urlbar.hpp2
4 files changed, 3 insertions, 4 deletions
diff --git a/src/urlbar/completer.cpp b/src/urlbar/completer.cpp
index df864e05..a7b893df 100644
--- a/src/urlbar/completer.cpp
+++ b/src/urlbar/completer.cpp
@@ -14,8 +14,6 @@
#include <QLineEdit>
#include <QTreeWidget>
-static const QString searchUrl{"https://duckduckgo.com/?q=%1"};
-
// ------------------------------------------------------------------------
// Ctor and Dtor
diff --git a/src/urlbar/completer.hpp b/src/urlbar/completer.hpp
index 11c0f62b..fad22df2 100644
--- a/src/urlbar/completer.hpp
+++ b/src/urlbar/completer.hpp
@@ -30,4 +30,5 @@ public slots:
private:
QLineEdit *m_editor;
QTreeWidget *m_popup;
+ const QString searchUrl{"https://duckduckgo.com/?q=%1"};
};
diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp
index 6c726d5a..4489765c 100644
--- a/src/urlbar/urlbar.cpp
+++ b/src/urlbar/urlbar.cpp
@@ -105,7 +105,7 @@ void UrlBar::setUrl(const QUrl &url)
setCursorPosition(0);
}
-void UrlBar::loadRequestedUrl(const QUrl &url, rekonq::OpenType type)
+void UrlBar::loadRequestedUrl(const QUrl &url, rekonq::OpenType)
{
clearFocus();
setText(url.toString());
diff --git a/src/urlbar/urlbar.hpp b/src/urlbar/urlbar.hpp
index 3e3b9059..7b6cc975 100644
--- a/src/urlbar/urlbar.hpp
+++ b/src/urlbar/urlbar.hpp
@@ -57,7 +57,7 @@ public slots:
*/
// void manageBookmarks();
- void loadRequestedUrl(const QUrl &url, rekonq::OpenType = rekonq::CurrentTab);
+ [[deprecated]] void loadRequestedUrl(const QUrl &url, rekonq::OpenType = rekonq::CurrentTab);
void loadStarted();
void loadProgress(int);