diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-11-20 22:09:45 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-11-20 22:15:29 -0500 |
commit | 22ea573b7417db0392c006dff06cde50ddbcd469 (patch) | |
tree | 649ac5ae9315710f213f82ea0c983a4062922e48 /include/oox | |
parent | f9041c386c2193c7d669691927261e0fd7608e3e (diff) |
Expose raw char array and use it to avoid OUString allocations.
In SheetDataContext::importCell().
Change-Id: I52db64219f672ea5fbbda17686bf1173ceac5926
Diffstat (limited to 'include/oox')
-rw-r--r-- | include/oox/helper/attributelist.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/oox/helper/attributelist.hxx b/include/oox/helper/attributelist.hxx index 6aa035a0b331..78ea83e28ab2 100644 --- a/include/oox/helper/attributelist.hxx +++ b/include/oox/helper/attributelist.hxx @@ -75,6 +75,12 @@ public: class OOX_DLLPUBLIC AttributeList { public: + struct Char + { + const char* mpPos; + size_t mnSize; + }; + explicit AttributeList( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastAttributeList >& rxAttribs ); @@ -132,6 +138,9 @@ public: passed default string if the attribute is missing. */ OUString getXString( sal_Int32 nAttrToken, const OUString& rDefault ) const; + Char getChar( sal_Int32 nAttrToken ) const; + + /** Returns the double value of the specified attribute, or the passed default value if the attribute is missing or not convertible to a double. */ double getDouble( sal_Int32 nAttrToken, double fDefault ) const; |