diff options
Diffstat (limited to 'cpp/src/XMLTransform/XMLTransform.cpp')
-rw-r--r-- | cpp/src/XMLTransform/XMLTransform.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/XMLTransform/XMLTransform.cpp b/cpp/src/XMLTransform/XMLTransform.cpp index 217a0080ef3..022865fbf31 100644 --- a/cpp/src/XMLTransform/XMLTransform.cpp +++ b/cpp/src/XMLTransform/XMLTransform.cpp @@ -1107,8 +1107,10 @@ public: // string id = getAttributeByName(node, "id"); assert(!id.empty()); +#ifndef NDEBUG MissingTypeMap::const_iterator q = map.find(id); assert(q != map.end()); +#endif MissingTypeException ex(__FILE__, __LINE__); ex.reason = "unable to find a transformation for type `" + n + "'"; throw ex; |