summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-01-08 10:38:15 +0200
committerMichael Meeks <michael.meeks@collabora.com>2015-04-09 20:02:57 +0100
commite1d413b132fd7dfa2ea81a1dddf54bcae346db6e (patch)
treebbe2b859e2ab8187cad460f26e3d2809f8873aa9 /include
parent422156fcce8922d968fb82db39f3b1237b961be1 (diff)
vcl: plugin: check that VclPtr is passed by reference
to avoid unnecessary increment/decrement traffic Change-Id: Ice4e08df002b815105aa0b1c9430511c0cec3d28 Conflicts: compilerplugins/clang/passstuffbyref.cxx
Diffstat (limited to 'include')
-rw-r--r--include/vcl/edit.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/edit.hxx b/include/vcl/edit.hxx
index 34902fb34c6e..265a83111d0e 100644
--- a/include/vcl/edit.hxx
+++ b/include/vcl/edit.hxx
@@ -237,7 +237,7 @@ public:
virtual const Link& GetModifyHdl() const { return maModifyHdl; }
virtual void SetUpdateDataHdl( const Link& rLink ) { maUpdateDataHdl = rLink; }
- void SetSubEdit( VclPtr<Edit> pEdit );
+ void SetSubEdit( const VclPtr<Edit>& pEdit );
Edit* GetSubEdit() const { return mpSubEdit; }
boost::signals2::signal< void ( Edit* ) > autocompleteSignal;