summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <kde@opensource.sf-tec.de>2016-08-20 18:16:47 (GMT)
committerRolf Eike Beer <kde@opensource.sf-tec.de>2016-08-20 18:16:47 (GMT)
commitaa39c9fdecec09d621f5ee38f48b71c8421aa74f (patch)
treef9d0e451c595c66f5f3d0f3973c814591b202f35
parent58ca0e26d0aefe930fdfb5fe967461fbbd9ebfb9 (diff)
fix return type to avoid compiler warning
CCMAIL:diazona@gmail.com
-rw-r--r--model/kgpgsearchresultmodel.cpp2
-rw-r--r--model/kgpgsearchresultmodel.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/model/kgpgsearchresultmodel.cpp b/model/kgpgsearchresultmodel.cpp
index 27d97e0..0bce3e6 100644
--- a/model/kgpgsearchresultmodel.cpp
+++ b/model/kgpgsearchresultmodel.cpp
@@ -501,7 +501,7 @@ KGpgSearchResultModel::filterByValidity() const
return m_filterByValidity;
}
-const QString &
+QString
KGpgSearchResultModel::idForIndex(const QModelIndex &index) const
{
return static_cast<KGpgSearchResultBackingModel *>(sourceModel())->idForIndex(mapToSource(index));
diff --git a/model/kgpgsearchresultmodel.h b/model/kgpgsearchresultmodel.h
index 8d01c34..92d8899 100644
--- a/model/kgpgsearchresultmodel.h
+++ b/model/kgpgsearchresultmodel.h
@@ -124,7 +124,7 @@ public:
* @param index valid index of any item in the model
* @return fingerprint of the corresponding key
*/
- const QString &idForIndex(const QModelIndex &index) const;
+ QString idForIndex(const QModelIndex &index) const;
/**
* @brief Return the total number of rows in the source model.