diff options
author | Michael Meeks <michael.meeks@suse.com> | 2013-03-14 12:08:28 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-03-14 13:26:42 +0000 |
commit | 678e35c4ac17219556ce0426043bd4ad905d5cee (patch) | |
tree | 6bfa1687229746e6a2f30f0421a0e10542bfeedc /xmloff/source | |
parent | restore incrementing time fields by area cursor is in (diff) | |
download | core-678e35c4ac17219556ce0426043bd4ad905d5cee.tar.gz core-678e35c4ac17219556ce0426043bd4ad905d5cee.zip |
xmloff: native code unit testing harness.
Change-Id: I5b9133deea2aa7630752128128f1a222bef99eb1
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/style/impastp4.cxx | 15 | ||||
-rw-r--r-- | xmloff/source/style/impastpl.hxx | 1 |
2 files changed, 16 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); } diff --git a/xmloff/source/style/impastpl.hxx b/xmloff/source/style/impastpl.hxx index 3c6e86cfe5fa..61226700f09f 100644 --- a/xmloff/source/style/impastpl.hxx +++ b/xmloff/source/style/impastpl.hxx @@ -81,6 +81,7 @@ public: void ClearEntries(); }; +/// A set that finds and sorts based only on mnFamily typedef boost::ptr_set<XMLFamilyData_Impl> XMLFamilyDataList_Impl; /////////////////////////////////////////////////////////////////////////////// |