diff options
| author | Karol Kosek <krkk@krkk.ct8.pl> | 2020-12-30 16:05:22 +0100 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2020-12-30 20:31:39 +0100 |
| commit | d32214d2f3db2fe2e9269f6b50994d39288b2f26 (patch) | |
| tree | e8d0d491edd00039c5bb4d6fd235eaf8b148c09c /src | |
| parent | 54c4fc7b36fea598d3b35ff9d00c451eefcaf710 (diff) | |
| download | kristall-d32214d2f3db2fe2e9269f6b50994d39288b2f26.tar.gz | |
Pass QPoint by value
Diffstat (limited to 'src')
| -rw-r--r-- | src/browsertab.cpp | 2 | ||||
| -rw-r--r-- | src/browsertab.hpp | 2 | ||||
| -rw-r--r-- | src/mainwindow.cpp | 4 | ||||
| -rw-r--r-- | src/mainwindow.hpp | 4 |
4 files changed, 6 insertions, 6 deletions
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<BrowserTab*>(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(); |
