summaryrefslogtreecommitdiff
path: root/xmloff/source/style/impastp4.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2013-03-14 12:08:28 +0000
committerMichael Meeks <michael.meeks@suse.com>2013-03-14 13:26:42 +0000
commit678e35c4ac17219556ce0426043bd4ad905d5cee (patch)
tree6bfa1687229746e6a2f30f0421a0e10542bfeedc /xmloff/source/style/impastp4.cxx
parent533be98148ff40f6205e2ac3b489748cae14ef0d (diff)
xmloff: native code unit testing harness.
Change-Id: I5b9133deea2aa7630752128128f1a222bef99eb1
Diffstat (limited to 'xmloff/source/style/impastp4.cxx')
-rw-r--r--xmloff/source/style/impastp4.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/xmloff/source/style/impastp4.cxx b/xmloff/source/style/impastp4.cxx
index 3b65905409fc..6f6f15c49749 100644
--- a/xmloff/source/style/impastp4.cxx
+++ b/xmloff/source/style/impastp4.cxx
@@ -78,6 +78,21 @@ void SvXMLAutoStylePoolP_Impl::AddFamily(
aPrefix += rStrPrefix;
}
+#if OSL_DEBUG_LEVEL > 0
+ XMLFamilyData_Impl aTemporary( nFamily );
+ XMLFamilyDataList_Impl::iterator aFind = maFamilyList.find(aTemporary);
+ if( aFind != maFamilyList.end() )
+ {
+ // FIXME: do we really intend to replace the previous nFamily
+ // entry in this case ?
+ SAL_WARN_IF( aFind->mxMapper != rMapper, "xmloff",
+ "Adding duplicate family " << rStrName <<
+ " with mismatching mapper ! " <<
+ typeid(*aFind->mxMapper.get()).name() << " " <<
+ typeid(rMapper.get()).name() );
+ }
+#endif
+
XMLFamilyData_Impl *pFamily = new XMLFamilyData_Impl( nFamily, rStrName, rMapper, aPrefix, bAsFamily );
maFamilyList.insert(pFamily);
}