diff options
Diffstat (limited to 'include/sax/fastattribs.hxx')
-rw-r--r-- | include/sax/fastattribs.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sax/fastattribs.hxx b/include/sax/fastattribs.hxx index c813fcf6944d..4147ac978f44 100644 --- a/include/sax/fastattribs.hxx +++ b/include/sax/fastattribs.hxx @@ -102,6 +102,13 @@ public: virtual css::uno::Sequence< css::xml::Attribute > SAL_CALL getUnknownAttributes( ) override; virtual css::uno::Sequence< css::xml::FastAttribute > SAL_CALL getFastAttributes() override; + static FastAttributeList* castToFastAttributeList( + const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) + { + assert( dynamic_cast <FastAttributeList *> ( xAttrList.get() ) != nullptr ); + return ( static_cast <FastAttributeList *> ( xAttrList.get() ) ); + } + /// Use for fast iteration and conversion of attributes class FastAttributeIter { const FastAttributeList &mrList; |