aboutsummaryrefslogtreecommitdiff
path: root/src/tabbrowsinghistory.cpp
diff options
context:
space:
mode:
authorKarol Kosek <krkk@krkk.ct8.pl>2020-12-30 16:01:26 +0100
committerFelix Queißner <felix@ib-queissner.de>2020-12-30 20:31:39 +0100
commit54c4fc7b36fea598d3b35ff9d00c451eefcaf710 (patch)
tree58f9ae4abb520e774fef4ece031b03bbb4c4fa24 /src/tabbrowsinghistory.cpp
parent07a4ddc230c11c7249acd4c0363c6075e939f11b (diff)
downloadkristall-54c4fc7b36fea598d3b35ff9d00c451eefcaf710.tar.gz
const-reference large types
Diffstat (limited to 'src/tabbrowsinghistory.cpp')
-rw-r--r--src/tabbrowsinghistory.cpp4
1 files changed, 2 insertions, 2 deletions
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{};