summaryrefslogtreecommitdiff
path: root/include/sfx2/viewsh.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-08 16:33:17 +0200
committerNoel Grandin <noel@peralex.com>2016-04-11 08:21:18 +0200
commit4cbcec9ed4c51277b00c155a5fa097880c0dee4b (patch)
tree7ae7630e51f37d0d60bae4640b4dcd047eaaee29 /include/sfx2/viewsh.hxx
parentf3a43c723eaf751d5ee28b13c0cc6f8014094bbe (diff)
clang-tidy performance-unnecessary-value-param in sfx2
Change-Id: I035eec1f3701c48b9a85c60400c68f9365299b48
Diffstat (limited to 'include/sfx2/viewsh.hxx')
-rw-r--r--include/sfx2/viewsh.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sfx2/viewsh.hxx b/include/sfx2/viewsh.hxx
index 1709b8699099..53dcd84115ae 100644
--- a/include/sfx2/viewsh.hxx
+++ b/include/sfx2/viewsh.hxx
@@ -169,10 +169,10 @@ protected:
public:
// Iteration
- static SfxViewShell* GetFirst( bool bOnlyVisible = true, std::function<bool ( const SfxViewShell* )> isViewShell = nullptr );
+ static SfxViewShell* GetFirst( bool bOnlyVisible = true, const std::function<bool ( const SfxViewShell* )>& isViewShell = nullptr );
static SfxViewShell* GetNext( const SfxViewShell& rPrev,
bool bOnlyVisible = true,
- std::function<bool ( const SfxViewShell* )> isViewShell = nullptr );
+ const std::function<bool ( const SfxViewShell* )>& isViewShell = nullptr );
static SfxViewShell* Current();
static SfxViewShell* Get( const css::uno::Reference< css::frame::XController>& i_rController );