summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <[email protected]>2015-07-17 03:36:30 +0200
committerAleix Pol <[email protected]>2015-07-17 03:36:30 +0200
commit89908d38b2521924b32f8617776cec9abf638d21 (patch)
treecb0ea0b9f62887a30de4368f70121c424363716f
parent24986fc50097b8d1414e9eb0d477545369239fb7 (diff)
Ensure it doesn't detach, don't run the loop if it's not going to assertv15.08.3v15.08.2v15.08.1v15.08.0v15.07.90v15.07.80Applications/15.08
-rw-r--r--analitza/expressiontype.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/analitza/expressiontype.cpp b/analitza/expressiontype.cpp
index 2a215d8..fcc75b1 100644
--- a/analitza/expressiontype.cpp
+++ b/analitza/expressiontype.cpp
@@ -259,9 +259,11 @@ void ExpressionType::addAssumptions(const QMap<QString, ExpressionType>& a)
ExpressionType ExpressionType::starsToType(const QMap<int, ExpressionType>& info) const
{
- for(QMap<int, ExpressionType>::const_iterator it=info.begin(); it!=info.end(); ++it) {
+#if defined(QT_NO_DEBUG) && !defined(QT_FORCE_ASSERTS)
+ for(QMap<int, ExpressionType>::const_iterator it=info.cbegin(); it!=info.cend(); ++it) {
Q_ASSERT(it->type()!=ExpressionType::Any || it->anyValue()!=it.key());
}
+#endif
ExpressionType ret;
// static int deep=0;