summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <kde@opensource.sf-tec.de>2016-08-20 17:58:04 (GMT)
committerRolf Eike Beer <kde@opensource.sf-tec.de>2016-08-20 17:58:04 (GMT)
commit9512b7f821296468004dee092a1c5038e7ee4ad1 (patch)
tree2faeecd03ddcef37a0e3962fb76254071e13fc9d
parent95c6901392c17ef174a63188447f58d02338aeef (diff)
add return values that should never be needed
CCMAIL:diazona@gmail.com
-rw-r--r--model/kgpgsearchresultmodel.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/model/kgpgsearchresultmodel.cpp b/model/kgpgsearchresultmodel.cpp
index 31d15ed..2d8e0aa 100644
--- a/model/kgpgsearchresultmodel.cpp
+++ b/model/kgpgsearchresultmodel.cpp
@@ -335,6 +335,7 @@ KGpgSearchResultBackingModel::columnCount(const QModelIndex &parent) const
return 2;
default:
Q_ASSERT(false);
+ return 0;
}
}
@@ -362,6 +363,7 @@ KGpgSearchResultBackingModel::index(int row, int column, const QModelIndex &pare
return createIndex(row, column);
default:
Q_ASSERT(false);
+ return QModelIndex();
}
}
@@ -382,6 +384,7 @@ KGpgSearchResultBackingModel::parent(const QModelIndex &index) const
}
default:
Q_ASSERT(false);
+ return QModelIndex();
}
}
@@ -406,6 +409,7 @@ KGpgSearchResultBackingModel::rowCount(const QModelIndex &parent) const
return 0;
default:
Q_ASSERT(false);
+ return 0;
}
}
@@ -440,6 +444,7 @@ KGpgSearchResultBackingModel::idForIndex(const QModelIndex &index) const
default:
// root level should have been caught at the beginning
Q_ASSERT(false);
+ return QString();
}
}