summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-03-08 19:39:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-09 07:14:51 +0100
commit2d40c43e868494abb87b405680f9c5ef460293cc (patch)
tree80ac9495557fd060fa6d092e42fccf8354c9ff98 /sfx2
parent97e47e7b004945d3ac28a9262df371ca2faf1903 (diff)
loplugin:redundantfcast look for unnecessary temporaries
when calling methods that take a const& Change-Id: Idf45dfd9fea0de6fae0b1f89550f2f7fc302aa15 Reviewed-on: https://gerrit.libreoffice.org/50970 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/objembed.cxx2
-rw-r--r--sfx2/source/sidebar/SidebarController.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/doc/objembed.cxx b/sfx2/source/doc/objembed.cxx
index 3c0f660b74a5..5af5ee4e4575 100644
--- a/sfx2/source/doc/objembed.cxx
+++ b/sfx2/source/doc/objembed.cxx
@@ -55,7 +55,7 @@ SfxObjectShell* SfxObjectShell::GetParentShellByModel_Impl()
{
SvGlobalName aSfxIdent( SFX_GLOBAL_CLASSID );
pResult = reinterpret_cast<SfxObjectShell*>(xParentTunnel->getSomething(
- uno::Sequence< sal_Int8 >( aSfxIdent.GetByteSequence() ) ) );
+ aSfxIdent.GetByteSequence() ) );
}
}
}
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx
index 5752120038a4..c57fbe2040c6 100644
--- a/sfx2/source/sidebar/SidebarController.cxx
+++ b/sfx2/source/sidebar/SidebarController.cxx
@@ -863,7 +863,7 @@ Reference<ui::XUIElement> SidebarController::CreateUIElement (
Reference<ui::XUIElement> xUIElement(
xUIElementFactory->createUIElement(
rsImplementationURL,
- Sequence<beans::PropertyValue>(aCreationArguments.getPropertyValues())),
+ aCreationArguments.getPropertyValues()),
UNO_QUERY_THROW);
return xUIElement;