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/mainwindow.cpp | |
| parent | 54c4fc7b36fea598d3b35ff9d00c451eefcaf710 (diff) | |
| download | kristall-d32214d2f3db2fe2e9269f6b50994d39288b2f26.tar.gz | |
Pass QPoint by value
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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()) { |
