summaryrefslogtreecommitdiffstats
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-04 14:34:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-11 09:48:10 +0200
commit49eb02f07a5af44da59008a238e828b4a9532bef (patch)
tree43c4b4eaacd79fe0bff784a4ef71f4c1080c3912 /chart2
parenttoolkit: Recover missing service names for ControlModelContainerBase (diff)
downloadcore-49eb02f07a5af44da59008a238e828b4a9532bef.tar.gz
core-49eb02f07a5af44da59008a238e828b4a9532bef.zip
new loplugin:unusedvariablemore
collection of heuristics to look for local variables that are never read from i.e. do not contribute to the surrounding logic This is an expensive plugin, since it walks up the parent tree, so it is off by default. Change-Id: Ib8ba292241bd16adf299e8bba4502cb473513a06 Reviewed-on: https://gerrit.libreoffice.org/52450 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/main/ShapeFactory.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/chart2/source/view/main/ShapeFactory.cxx b/chart2/source/view/main/ShapeFactory.cxx
index 73948f12f343..738a52a3cabb 100644
--- a/chart2/source/view/main/ShapeFactory.cxx
+++ b/chart2/source/view/main/ShapeFactory.cxx
@@ -2454,14 +2454,12 @@ uno::Reference< drawing::XShape >
}
else
{
- uno::Sequence< uno::Reference< text::XTextCursor > > aCursorList( xFormattedString.getLength() );
sal_Int32 nN = 0;
for( nN=0; nN<xFormattedString.getLength();nN++ )
{
xTextCursor->gotoEnd(false);
xText->insertString( xTextRange, xFormattedString[nN]->getString(), false );
xTextCursor->gotoEnd(true);
- aCursorList[nN] = xText->createTextCursorByRange( uno::Reference< text::XTextRange >(xTextCursor,uno::UNO_QUERY) );
}
awt::Size aOldRefSize;
bool bHasRefPageSize =