From 54c4fc7b36fea598d3b35ff9d00c451eefcaf710 Mon Sep 17 00:00:00 2001 From: Karol Kosek Date: Wed, 30 Dec 2020 16:01:26 +0100 Subject: const-reference large types --- src/tabbrowsinghistory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tabbrowsinghistory.cpp') diff --git a/src/tabbrowsinghistory.cpp b/src/tabbrowsinghistory.cpp index db4a981..5f2cba4 100644 --- a/src/tabbrowsinghistory.cpp +++ b/src/tabbrowsinghistory.cpp @@ -41,7 +41,7 @@ QUrl TabBrowsingHistory::get(const QModelIndex &index) const return history.at(index.row()); } -QModelIndex TabBrowsingHistory::oneForward(QModelIndex index) const +QModelIndex TabBrowsingHistory::oneForward(const QModelIndex &index) const { if(not index.isValid()) return QModelIndex{}; @@ -50,7 +50,7 @@ QModelIndex TabBrowsingHistory::oneForward(QModelIndex index) const return createIndex(index.row() + 1, index.column()); } -QModelIndex TabBrowsingHistory::oneBackward(QModelIndex index) const +QModelIndex TabBrowsingHistory::oneBackward(const QModelIndex &index) const { if(not index.isValid()) return QModelIndex{}; -- cgit v1.2.3