Kaydet (Commit) f3abca2b authored tarafından Julien Nabet's avatar Julien Nabet

Show duplicate attribute

Change-Id: I6e1e66012817178c167e7cb531811686cb2fec19
üst 618f8846
...@@ -293,6 +293,7 @@ namespace sax_fastparser { ...@@ -293,6 +293,7 @@ namespace sax_fastparser {
#ifdef DBG_UTIL #ifdef DBG_UTIL
// Well-formedness constraint: Unique Att Spec // Well-formedness constraint: Unique Att Spec
OString const nameId(getId(nToken)); OString const nameId(getId(nToken));
SAL_WARN_IF(DebugAttributes.find(nameId) != DebugAttributes.end(), "sax", "Duplicate attribute: " << nameId );
assert(DebugAttributes.find(nameId) == DebugAttributes.end()); assert(DebugAttributes.find(nameId) == DebugAttributes.end());
DebugAttributes.insert(nameId); DebugAttributes.insert(nameId);
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment