summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/insertionpointlocator.cpp
diff options
context:
space:
mode:
authorLeandro Melo <leandro.melo@nokia.com>2012-01-23 17:44:49 +0100
committerhjk <qthjk@ovi.com>2012-01-24 09:58:59 +0100
commitefe9bca20c2569f039f0193c6572d88dc024cd3d (patch)
tree3f5173f35c94a6f93f0df32c46478c861b3fcf33 /src/plugins/cpptools/insertionpointlocator.cpp
parent918131b6e7d8f6db583a8c056749efa675761111 (diff)
downloadqt-creator-efe9bca20c2569f039f0193c6572d88dc024cd3d.tar.gz
C++: Replace non-absolute-critical asserts for soft ones
Change-Id: I021074a78d90929b4e83b8aff9db1ae7995e8c6a Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/cpptools/insertionpointlocator.cpp')
-rw-r--r--src/plugins/cpptools/insertionpointlocator.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/cpptools/insertionpointlocator.cpp b/src/plugins/cpptools/insertionpointlocator.cpp
index 64ccb8ed4c..63b884d47f 100644
--- a/src/plugins/cpptools/insertionpointlocator.cpp
+++ b/src/plugins/cpptools/insertionpointlocator.cpp
@@ -44,6 +44,8 @@
#include <coreplugin/icore.h>
#include <coreplugin/mimedatabase.h>
+#include <utils/qtcassert.h>
+
using namespace CPlusPlus;
using namespace CppTools;
@@ -173,7 +175,7 @@ protected:
bool &needsPrefix,
bool &needsSuffix)
{
- Q_ASSERT(!ranges.isEmpty());
+ QTC_ASSERT(!ranges.isEmpty(), return);
const int lastIndex = ranges.size() - 1;
// try an exact match, and ignore the first (default) access spec:
@@ -349,7 +351,7 @@ public:
const Value &get() const
{
- Q_ASSERT(_set);
+ QTC_ASSERT(_set, return Value());
return _value;
}
};