Kaydet (Commit) 9f030d08 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

use Families instead of the generic 'Container'

Change-Id: I009002621a5481b91e14a215237278d56d742579
üst 2056e312
......@@ -66,7 +66,7 @@ class SwXStyleFamilies : public cppu::WeakImplHelper
{
SwDocShell* m_pDocShell;
std::map<SfxStyleFamily, css::uno::Reference<css::container::XNameContainer>> m_vContainers;
std::map<SfxStyleFamily, css::uno::Reference<css::container::XNameContainer>> m_vFamilies;
protected:
virtual ~SwXStyleFamilies();
public:
......
......@@ -303,10 +303,10 @@ uno::Any SwXStyleFamilies::getByIndex(sal_Int32 nIndex)
throw uno::RuntimeException();
auto eFamily = our_vStyleFamilyEntries[nIndex].m_eFamily;
assert(eFamily != SFX_STYLE_FAMILY_ALL);
auto& rxContainer = m_vContainers[eFamily];
if(!rxContainer.is())
rxContainer = new XStyleFamily(m_pDocShell, eFamily);
return uno::makeAny(rxContainer);
auto& rxFamily = m_vFamilies[eFamily];
if(!rxFamily.is())
rxFamily = new XStyleFamily(m_pDocShell, eFamily);
return uno::makeAny(rxFamily);
}
uno::Type SwXStyleFamilies::getElementType()
......
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