summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-28 12:03:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-29 08:53:23 +0200
commit0d36b32755ac662299e6a8165e9fa57311b74a2f (patch)
treece68c6d050056858dbf31033d7d3a3741aab2276 /sw
parentf53fcf9cfcc0bef415f9d2d95132ccd8bbe96061 (diff)
loplugin:sequentialassign
Change-Id: I56a9bf698b60bd278c71cc632aacef2bd2f4c13f Reviewed-on: https://gerrit.libreoffice.org/76501 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/access/acchyperlink.cxx3
-rw-r--r--sw/source/ui/dbui/mmaddressblockpage.cxx3
-rw-r--r--sw/source/uibase/shells/basesh.cxx3
3 files changed, 3 insertions, 6 deletions
diff --git a/sw/source/core/access/acchyperlink.cxx b/sw/source/core/access/acchyperlink.cxx
index e7d756af731c..fbade55b8569 100644
--- a/sw/source/core/access/acchyperlink.cxx
+++ b/sw/source/core/access/acchyperlink.cxx
@@ -214,8 +214,7 @@ sal_Bool SAL_CALL SwAccessibleHyperlink::isValid( )
for( const OUString& aLink : aNames )
{
- uno::Any aAny;
- aAny = xLinks->getByName( aLink );
+ uno::Any aAny = xLinks->getByName( aLink );
aAny >>= xSubLinks;
if (xSubLinks->hasByName(sText.copy(1)) )
return true;
diff --git a/sw/source/ui/dbui/mmaddressblockpage.cxx b/sw/source/ui/dbui/mmaddressblockpage.cxx
index 6331035d7a01..fb696970c763 100644
--- a/sw/source/ui/dbui/mmaddressblockpage.cxx
+++ b/sw/source/ui/dbui/mmaddressblockpage.cxx
@@ -1558,8 +1558,7 @@ css::uno::Reference<css::datatransfer::dnd::XDropTarget> AddressMultiLineEdit::G
bool AddressMultiLineEdit::SetCursorLogicPosition(const Point& rPosition)
{
- Point aMousePos(rPosition);
- aMousePos = EditViewOutputDevice().PixelToLogic(aMousePos);
+ Point aMousePos = EditViewOutputDevice().PixelToLogic(rPosition);
m_xEditView->SetCursorLogicPosition(aMousePos, false, true);
ESelection aSelection = m_xEditView->GetSelection();
diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx
index 631c70f7a0bf..aceb8a9d1d9d 100644
--- a/sw/source/uibase/shells/basesh.cxx
+++ b/sw/source/uibase/shells/basesh.cxx
@@ -399,8 +399,7 @@ void SwBaseShell::ExecClpbrd(SfxRequest &rReq)
// destroyed after the paste.
SwView* pView = &rView;
bool bRet = false;
- SotClipboardFormatId nFormatId = SotClipboardFormatId::NONE;
- nFormatId = pDlg->GetFormatOnly();
+ SotClipboardFormatId nFormatId = pDlg->GetFormatOnly();
if( nFormatId != SotClipboardFormatId::NONE )
bRet = SwTransferable::PasteFormat( rSh, *aDataHelper, nFormatId );