summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-02-22 10:59:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-02-22 18:01:49 +0100
commit334644bad9e325d5b23b4416cdc3d22dce5141bf (patch)
tree1b7a1d4d89473f677dd30449c1eb37a22c9a174d /svl
parentf47b60667ff307e9e44ecd5457261151b9aca8cb (diff)
loplugin:unusedfields in svl
and simplify SvAddressParser Change-Id: I8333b4442dca69e46ad14c952436b98e40089a8c Reviewed-on: https://gerrit.libreoffice.org/68199 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/misc/adrparse.cxx10
1 files changed, 1 insertions, 9 deletions
diff --git a/svl/source/misc/adrparse.cxx b/svl/source/misc/adrparse.cxx
index 11d8742c36ed..16b3aa4c7196 100644
--- a/svl/source/misc/adrparse.cxx
+++ b/svl/source/misc/adrparse.cxx
@@ -662,14 +662,7 @@ SvAddressParser_Impl::SvAddressParser_Impl(SvAddressParser * pParser,
else
aTheRealName = rInput.copy( (m_pRealNameContentBegin - rInput.getStr()), nLen);
}
- if (pParser->m_bHasFirst)
- pParser->m_aRest.emplace_back( aTheAddrSpec, aTheRealName );
- else
- {
- pParser->m_bHasFirst = true;
- pParser->m_aFirst.m_aAddrSpec = aTheAddrSpec;
- pParser->m_aFirst.m_aRealName = aTheRealName;
- }
+ pParser->m_vAddresses.emplace_back( aTheAddrSpec );
}
if (bDone)
return;
@@ -721,7 +714,6 @@ SvAddressParser_Impl::SvAddressParser_Impl(SvAddressParser * pParser,
}
SvAddressParser::SvAddressParser(const OUString& rInput)
- : m_bHasFirst(false)
{
SvAddressParser_Impl aDoParse(this, rInput);
}