From d32214d2f3db2fe2e9269f6b50994d39288b2f26 Mon Sep 17 00:00:00 2001 From: Karol Kosek Date: Wed, 30 Dec 2020 16:05:22 +0100 Subject: Pass QPoint by value --- src/browsertab.cpp | 2 +- src/browsertab.hpp | 2 +- src/mainwindow.cpp | 4 ++-- src/mainwindow.hpp | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/browsertab.cpp b/src/browsertab.cpp index 11ad9fb..15c4686 100644 --- a/src/browsertab.cpp +++ b/src/browsertab.cpp @@ -1226,7 +1226,7 @@ void BrowserTab::disableClientCertificate() this->current_identity = CryptoIdentity(); } -void BrowserTab::on_text_browser_customContextMenuRequested(const QPoint &pos) +void BrowserTab::on_text_browser_customContextMenuRequested(const QPoint pos) { QMenu menu; diff --git a/src/browsertab.hpp b/src/browsertab.hpp index 10edbc7..6ff1e55 100644 --- a/src/browsertab.hpp +++ b/src/browsertab.hpp @@ -105,7 +105,7 @@ private slots: void on_home_button_clicked(); - void on_text_browser_customContextMenuRequested(const QPoint &pos); + void on_text_browser_customContextMenuRequested(const QPoint pos); void on_enable_client_cert_button_clicked(bool checked); diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 91a865f..b88751c 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -425,7 +425,7 @@ void MainWindow::on_actionHelp_triggered() this->addNewTab(true, QUrl("about:help")); } -void MainWindow::on_history_view_customContextMenuRequested(const QPoint &pos) +void MainWindow::on_history_view_customContextMenuRequested(const QPoint pos) { if(auto idx = this->ui->history_view->indexAt(pos); idx.isValid()) { BrowserTab * tab = qobject_cast(this->ui->browser_tabs->currentWidget()); @@ -448,7 +448,7 @@ void MainWindow::on_history_view_customContextMenuRequested(const QPoint &pos) } } -void MainWindow::on_favourites_view_customContextMenuRequested(const QPoint &pos) +void MainWindow::on_favourites_view_customContextMenuRequested(const QPoint pos) { if(auto idx = this->ui->favourites_view->indexAt(pos); idx.isValid()) { if(QUrl url = kristall::favourites.getFavourite(idx).destination; url.isValid()) { diff --git a/src/mainwindow.hpp b/src/mainwindow.hpp index 4de4a7f..58c6c3e 100644 --- a/src/mainwindow.hpp +++ b/src/mainwindow.hpp @@ -71,9 +71,9 @@ private slots: void on_actionHelp_triggered(); - void on_history_view_customContextMenuRequested(const QPoint &pos); + void on_history_view_customContextMenuRequested(const QPoint pos); - void on_favourites_view_customContextMenuRequested(const QPoint &pos); + void on_favourites_view_customContextMenuRequested(const QPoint pos); void on_actionChangelog_triggered(); -- cgit v1.2.3