From f3abca2b45243107f70a402d2ec8ad5e3c50346a Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sat, 11 Apr 2015 15:54:29 +0200 Subject: [PATCH] Show duplicate attribute Change-Id: I6e1e66012817178c167e7cb531811686cb2fec19 --- sax/source/tools/fastserializer.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/sax/source/tools/fastserializer.cxx b/sax/source/tools/fastserializer.cxx index 4c1848bb08e7..85c9694d3094 100644 --- a/sax/source/tools/fastserializer.cxx +++ b/sax/source/tools/fastserializer.cxx @@ -293,6 +293,7 @@ namespace sax_fastparser { #ifdef DBG_UTIL // Well-formedness constraint: Unique Att Spec OString const nameId(getId(nToken)); + SAL_WARN_IF(DebugAttributes.find(nameId) != DebugAttributes.end(), "sax", "Duplicate attribute: " << nameId ); assert(DebugAttributes.find(nameId) == DebugAttributes.end()); DebugAttributes.insert(nameId); #endif