summaryrefslogtreecommitdiff
path: root/svtools/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-11-20 19:10:49 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-11-21 18:27:56 +0100
commitb07b192720702ff1f0385b6c6a521117f93b7038 (patch)
treebfeb3f66527e9136a8629edd943714ec10061d15 /svtools/source
parent79a1fafadb1ac54b8212bc164d8b85d798c74937 (diff)
loplugin:unusedfields
Change-Id: Ic4cb8444123864fdaee64960f00a05b3066ae5fc Reviewed-on: https://gerrit.libreoffice.org/83387 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source')
-rw-r--r--svtools/source/control/inettbc.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx
index 5ffd546dad6c..1bf5619b0199 100644
--- a/svtools/source/control/inettbc.cxx
+++ b/svtools/source/control/inettbc.cxx
@@ -91,7 +91,6 @@ class SvtMatchContext_Impl: public salhelper::Thread
std::vector<OUString> aCompletions;
std::vector<OUString> aURLs;
svtools::AsynchronLink aLink;
- OUString const aBaseURL;
OUString const aText;
VclPtr<SvtURLBox> pBox;
@@ -879,9 +878,7 @@ void SvtMatchContext_Impl::doExecute()
OUString aMatch;
INetProtocol eProt = INetURLObject::CompareProtocolScheme( aText );
- INetProtocol eBaseProt = INetURLObject::CompareProtocolScheme( aBaseURL );
- if ( aBaseURL.isEmpty() )
- eBaseProt = INetURLObject::CompareProtocolScheme( SvtPathOptions().GetWorkPath() );
+ INetProtocol eBaseProt = INetURLObject::CompareProtocolScheme( SvtPathOptions().GetWorkPath() );
INetProtocol eSmartProt = pBox->GetSmartProtocol();
// if the user input is a valid URL, go on with it
@@ -893,7 +890,7 @@ void SvtMatchContext_Impl::doExecute()
if( schedule() )
{
if ( eProt == INetProtocol::NotValid )
- aMatch = SvtURLBox::ParseSmart( aText, aBaseURL );
+ aMatch = SvtURLBox::ParseSmart( aText, "" );
else
aMatch = aText;
if ( !aMatch.isEmpty() )