diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-11 15:40:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-12 09:56:01 +0200 |
commit | 389da66dfc96d06c407bff156c4ea21e940c5e06 (patch) | |
tree | 2d1ebce6bdb2d952700ed5aaeb808289e9f72a7d /sw/source/filter/xml/XMLRedlineImportHelper.cxx | |
parent | convert SdrLayerId to strong_int (diff) | |
download | core-389da66dfc96d06c407bff156c4ea21e940c5e06.tar.gz core-389da66dfc96d06c407bff156c4ea21e940c5e06.zip |
remove unused uno::Reference vars
found by temporarily marking Reference as SAL_WARN_UNUSED.
Change-Id: I18809b62654467f890016adcc92576980ced393b
Reviewed-on: https://gerrit.libreoffice.org/37511
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/xml/XMLRedlineImportHelper.cxx')
-rw-r--r-- | sw/source/filter/xml/XMLRedlineImportHelper.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/filter/xml/XMLRedlineImportHelper.cxx b/sw/source/filter/xml/XMLRedlineImportHelper.cxx index 0b4059161d82..cd26c4debb67 100644 --- a/sw/source/filter/xml/XMLRedlineImportHelper.cxx +++ b/sw/source/filter/xml/XMLRedlineImportHelper.cxx @@ -463,13 +463,12 @@ Reference<XTextCursor> XMLRedlineImportHelper::CreateRedlineTextSection( aFind->second->pContentIndex = new SwNodeIndex(aIndex); // create XText for document - SwXText* pXText = new SwXRedlineText(pDoc, aIndex); - Reference<XText> xText = pXText; // keep Reference until end of method + rtl::Reference<SwXRedlineText> pXText = new SwXRedlineText(pDoc, aIndex); // create (UNO-) cursor SwPosition aPos(*pRedlineNode); SwXTextCursor *const pXCursor = - new SwXTextCursor(*pDoc, pXText, CursorType::Redline, aPos); + new SwXTextCursor(*pDoc, pXText.get(), CursorType::Redline, aPos); pXCursor->GetCursor().Move(fnMoveForward, GoInNode); // cast to avoid ambiguity xReturn = static_cast<text::XWordCursor*>(pXCursor); |