summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2013-12-31 12:04:21 +0000
committerMichael Meeks <michael.meeks@collabora.com>2014-01-14 15:52:11 +0000
commit91570fc3f37bedd66eb11b7fb585e207e51abeaa (patch)
tree2a328e5b803328bfff79b6da2aee3e9954b58a89 /sax
parent2da415ee45ff95e847275f6f39b808871f0afed9 (diff)
fastparser: avoid boost::optional where it is un-necessary.
boost::optional appears to show up rather heavily on many profiles. We already use mnElementToken == DONTKNOW to flag / use these guys. Change-Id: Ibf2b0167f259cc601da2fb9703e880b78e60886e
Diffstat (limited to 'sax')
-rw-r--r--sax/source/fastparser/fastparser.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
index 8f02e4f9b0a9..8c8ab1b31c1e 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -96,10 +96,10 @@ struct NameWithToken
struct SaxContext
{
- ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastContextHandler > mxContext;
- sal_Int32 mnElementToken;
- boost::optional< OUString > maNamespace;
- boost::optional< OUString > maElementName;
+ Reference< XFastContextHandler > mxContext;
+ sal_Int32 mnElementToken;
+ OUString maNamespace;
+ OUString maElementName;
SaxContext( sal_Int32 nElementToken, const OUString& aNamespace, const OUString& aElementName ):
mnElementToken(nElementToken)
@@ -488,7 +488,7 @@ void Entity::endElement()
if( nElementToken != FastToken::DONTKNOW )
xContext->endFastElement( nElementToken );
else
- xContext->endUnknownElement( aContext.maNamespace.get(), aContext.maElementName.get() );
+ xContext->endUnknownElement( aContext.maNamespace, aContext.maElementName );
}
catch (const Exception& e)
{