summaryrefslogtreecommitdiff
path: root/sfx2/source/view
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-09 13:26:44 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-09-09 12:42:25 +0000
commit20c14c812ccc00692d42d294d3b8dea1774e3511 (patch)
treed48011cd869cf64069c84d1494f504f6f59b8ed1 /sfx2/source/view
parent9dc0f2b703d8fbc8698a3cf36949a981e55b68c6 (diff)
loplugin:constantparam in sfx2
Change-Id: If5d401001abb7bf3fc642d47f537b57836e6d9c5 Reviewed-on: https://gerrit.libreoffice.org/28772 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sfx2/source/view')
-rw-r--r--sfx2/source/view/viewfrm.cxx2
-rw-r--r--sfx2/source/view/viewsh.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index f1c93d81243e..963876a8a859 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -1077,7 +1077,7 @@ void SfxViewFrame::DoActivate( bool bUI )
{
SfxGetpApp();
- m_pDispatcher->DoActivate_Impl( bUI, nullptr );
+ m_pDispatcher->DoActivate_Impl( bUI );
// If this ViewFrame has got a parent and this is not a parent of the
// old ViewFrames, it gets a ParentActivate.
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx
index 710c9cbb1189..e2d2473f71c5 100644
--- a/sfx2/source/view/viewsh.cxx
+++ b/sfx2/source/view/viewsh.cxx
@@ -508,7 +508,7 @@ void SfxViewShell::ExecMisc_Impl( SfxRequest &rReq )
if ( aRecipient.startsWith( aMailToStr ) )
aRecipient = aRecipient.copy( aMailToStr.getLength() );
- aModel.AddAddress( aRecipient, SfxMailModel::ROLE_TO );
+ aModel.AddToAddress( aRecipient );
}
const SfxStringItem* pMailDocType = rReq.GetArg<SfxStringItem>(SID_TYPE_NAME);
if ( pMailDocType )