summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2013-12-31 12:04:21 +0000
committerMatúš Kukan <matus.kukan@collabora.com>2014-01-14 16:30:58 +0000
commit8da7d7226777788bc957e474f5c9fcb9b78dc54e (patch)
treea7b7ac9d262bea5d97d910eccd433b0674bbc098 /sax
parent806d7e4237726bfe75d1c18fb0edbdfec675648a (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 Reviewed-on: https://gerrit.libreoffice.org/7424 Reviewed-by: Matúš Kukan <matus.kukan@collabora.com> Tested-by: Matúš Kukan <matus.kukan@collabora.com>
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 0a609a13527b..0cfdb1483546 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -95,10 +95,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)
@@ -500,7 +500,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)
{