summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <kde@opensource.sf-tec.de>2016-08-20 18:07:59 (GMT)
committerRolf Eike Beer <kde@opensource.sf-tec.de>2016-08-20 18:07:59 (GMT)
commit58ca0e26d0aefe930fdfb5fe967461fbbd9ebfb9 (patch)
tree81f0793ca10164da005d0b50bce83944fc8638a3
parent9512b7f821296468004dee092a1c5038e7ee4ad1 (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 2d8e0aa..27d97e0 100644
--- a/model/kgpgsearchresultmodel.cpp
+++ b/model/kgpgsearchresultmodel.cpp
@@ -432,7 +432,7 @@ KGpgSearchResultBackingModel::headerData(int section, Qt::Orientation orientatio
}
}
-const QString &
+QString
KGpgSearchResultBackingModel::idForIndex(const QModelIndex &index) const
{
Q_ASSERT(index.isValid());
diff --git a/model/kgpgsearchresultmodel.h b/model/kgpgsearchresultmodel.h
index e583251..8d01c34 100644
--- a/model/kgpgsearchresultmodel.h
+++ b/model/kgpgsearchresultmodel.h
@@ -57,7 +57,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;
typedef enum {ROOT_LEVEL, KEY_LEVEL, ATTRIBUTE_LEVEL} NodeLevel;