diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-08-16 20:21:19 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-08-16 21:31:45 -0400 |
commit | defbcb229a08f0a147cfdc2c8476684694ad184f (patch) | |
tree | dad99b89d28d26ce2a3c7430c8fbec5993e2dd5a /xmloff/source/style/impastpl.hxx | |
parent | 1b183738aecc32219920a698196c72afebcdd8c0 (diff) |
Using ptr_vector for this simplifes it a bit...
Change-Id: Id772a260475de7e9c8599616eff189851af6b356
Diffstat (limited to 'xmloff/source/style/impastpl.hxx')
-rw-r--r-- | xmloff/source/style/impastpl.hxx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/xmloff/source/style/impastpl.hxx b/xmloff/source/style/impastpl.hxx index b004115a4705..d3b6cf66438c 100644 --- a/xmloff/source/style/impastpl.hxx +++ b/xmloff/source/style/impastpl.hxx @@ -33,6 +33,7 @@ #include <boost/noncopyable.hpp> #include <boost/ptr_container/ptr_set.hpp> +#include <boost/ptr_container/ptr_vector.hpp> class SvXMLAutoStylePoolP; class SvXMLAutoStylePoolParentP_Impl; @@ -94,14 +95,15 @@ public: void SetName( const OUString& rNew ) { msName = rNew; } }; -typedef SvXMLAutoStylePoolPropertiesP_Impl* SvXMLAutoStylePoolPropertiesPPtr; -typedef ::std::vector< SvXMLAutoStylePoolPropertiesPPtr > SvXMLAutoStylePoolPropertiesPList_Impl; - // Parents of AutoStylePool's class SvXMLAutoStylePoolParentP_Impl { - OUString msParent; - SvXMLAutoStylePoolPropertiesPList_Impl maPropertiesList; +public: + typedef boost::ptr_vector<SvXMLAutoStylePoolPropertiesP_Impl> PropertiesListType; + +private: + OUString msParent; + PropertiesListType maPropertiesList; public: @@ -120,7 +122,7 @@ public: const OUString& GetParent() const { return msParent; } - const SvXMLAutoStylePoolPropertiesPList_Impl& GetPropertiesList() const + const PropertiesListType& GetPropertiesList() const { return maPropertiesList; } |