summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-01-26 13:26:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-01-28 07:19:46 +0100
commit65f007c629e5a7b2710e21e3f26164b433576e27 (patch)
treed064b7c23ffe3948443fe1a4499a56308e01f97a /sc/source/ui
parent1446e097e76669c0d7749ec0f8918606d3cc4c28 (diff)
remove some unused local vars
found by my new aggressive unused var plugin. these are unused return values from function calls Change-Id: I3359c583f535828f192cb833762dfedc008d82f0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87439 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/dataprovider/csvdataprovider.cxx2
-rw-r--r--sc/source/ui/dataprovider/htmldataprovider.cxx2
-rw-r--r--sc/source/ui/vba/vbacomment.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/dataprovider/csvdataprovider.cxx b/sc/source/ui/dataprovider/csvdataprovider.cxx
index 8e619e63f771..e868e2269358 100644
--- a/sc/source/ui/dataprovider/csvdataprovider.cxx
+++ b/sc/source/ui/dataprovider/csvdataprovider.cxx
@@ -102,7 +102,7 @@ void CSVFetchThread::EndThread()
void CSVFetchThread::execute()
{
OStringBuffer aBuffer(64000);
- std::unique_ptr<SvStream> pStream = DataProvider::FetchStreamFromURL(maURL, aBuffer);
+ DataProvider::FetchStreamFromURL(maURL, aBuffer);
if (mbTerminate)
return;
diff --git a/sc/source/ui/dataprovider/htmldataprovider.cxx b/sc/source/ui/dataprovider/htmldataprovider.cxx
index b8b7b3746d2c..39a30c8754b9 100644
--- a/sc/source/ui/dataprovider/htmldataprovider.cxx
+++ b/sc/source/ui/dataprovider/htmldataprovider.cxx
@@ -182,7 +182,7 @@ void HTMLFetchThread::handleTable(xmlNodePtr pTable)
void HTMLFetchThread::execute()
{
OStringBuffer aBuffer(64000);
- std::unique_ptr<SvStream> pStream = DataProvider::FetchStreamFromURL(maURL, aBuffer);
+ DataProvider::FetchStreamFromURL(maURL, aBuffer);
if (aBuffer.isEmpty())
return;
diff --git a/sc/source/ui/vba/vbacomment.cxx b/sc/source/ui/vba/vbacomment.cxx
index d78863cd1f78..1552fadb240e 100644
--- a/sc/source/ui/vba/vbacomment.cxx
+++ b/sc/source/ui/vba/vbacomment.cxx
@@ -51,7 +51,7 @@ ScVbaComment::ScVbaComment(
{
if ( !xRange.is() )
throw lang::IllegalArgumentException("range is not set ", uno::Reference< uno::XInterface >() , 1 );
- uno::Reference< text::XSimpleText > xAnnoText( getAnnotation(), uno::UNO_QUERY );
+ getAnnotation();
}
// private helper functions