diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-08-02 23:49:21 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-08-02 23:49:21 +0200 |
commit | ad99d4eeb60d4d18a93fcc78973b5f5dd20c0fbb (patch) | |
tree | 104dfab7e82329d307466196f0a5821139a96822 /xmloff | |
parent | e38940a137c5d3b474421ac0721a995dac46f8dd (diff) |
SvXMLAutoStylePoolP_Impl: try to make MSVC happy
Change-Id: Ifecfa196923b7fdde51839d74bef46e840bae501
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/style/impastp4.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/xmloff/source/style/impastp4.cxx b/xmloff/source/style/impastp4.cxx index 3eecb55438bd..194c516472ab 100644 --- a/xmloff/source/style/impastp4.cxx +++ b/xmloff/source/style/impastp4.cxx @@ -263,12 +263,14 @@ OUString SvXMLAutoStylePoolP_Impl::Find( sal_Int32 nFamily, OUString sName; XMLFamilyData_Impl aTemporary( nFamily ); - XMLFamilyDataList_Impl::iterator aFind = maFamilyList.find(aTemporary); - DBG_ASSERT(aFind != maFamilyList.end(), "SvXMLAutoStylePool_Impl::Find: unknown family"); + XMLFamilyDataList_Impl::const_iterator const iter = + maFamilyList.find(aTemporary); + OSL_ENSURE(iter != maFamilyList.end(), + "SvXMLAutoStylePool_Impl::Find: unknown family"); - if (aFind != maFamilyList.end()) + if (iter != maFamilyList.end()) { - XMLFamilyData_Impl &rFamily = *aFind; + XMLFamilyData_Impl const& rFamily = *iter; const SvXMLAutoStylePoolParentsP_Impl* pParents = rFamily.mpParentList; |