reduce some ref-counting
Change-Id: I7b372237c21c469f78be281eedbbdda217fd12c8 Reviewed-on: https://gerrit.libreoffice.org/82442 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
parent
8791b9957c
commit
19e96dc156
@ -920,7 +920,7 @@ void SAL_CALL SvXMLImport::endFastElement (sal_Int32 Element)
|
|||||||
{
|
{
|
||||||
if (!maFastContexts.empty())
|
if (!maFastContexts.empty())
|
||||||
{
|
{
|
||||||
uno::Reference<XFastContextHandler> xContext = maFastContexts.top();
|
uno::Reference<XFastContextHandler> xContext = std::move(maFastContexts.top());
|
||||||
maFastContexts.pop();
|
maFastContexts.pop();
|
||||||
isFastContext = true;
|
isFastContext = true;
|
||||||
xContext->endFastElement( Element );
|
xContext->endFastElement( Element );
|
||||||
@ -935,7 +935,7 @@ void SAL_CALL SvXMLImport::endUnknownElement (const OUString & rPrefix, const OU
|
|||||||
{
|
{
|
||||||
if (!maFastContexts.empty())
|
if (!maFastContexts.empty())
|
||||||
{
|
{
|
||||||
uno::Reference<XFastContextHandler> xContext = maFastContexts.top();
|
uno::Reference<XFastContextHandler> xContext = std::move(maFastContexts.top());
|
||||||
maFastContexts.pop();
|
maFastContexts.pop();
|
||||||
xContext->endUnknownElement( rPrefix, rLocalName );
|
xContext->endUnknownElement( rPrefix, rLocalName );
|
||||||
xContext = nullptr;
|
xContext = nullptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user