diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-14 09:23:37 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-04-14 08:23:20 +0000 |
commit | d8644c8edb405abd9d71e62e43e898c1d2a28fd2 (patch) | |
tree | 1d9f5e17b3f1a53cad84f2a3a1fe0875ec54d20b /vcl/qa/cppunit/lifecycle.cxx | |
parent | 6656693836a382e6dac3a8c7ae794517b5f92bcc (diff) |
loplugin:passstuffbyref in vcl
Change-Id: I17a4dc73c3fc81b0bfebdf442021af65f8f6166c
Reviewed-on: https://gerrit.libreoffice.org/24075
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/qa/cppunit/lifecycle.cxx')
-rw-r--r-- | vcl/qa/cppunit/lifecycle.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/qa/cppunit/lifecycle.cxx b/vcl/qa/cppunit/lifecycle.cxx index 0d6c0c1beb8e..a6389c295580 100644 --- a/vcl/qa/cppunit/lifecycle.cxx +++ b/vcl/qa/cppunit/lifecycle.cxx @@ -230,7 +230,7 @@ public: pNew->mpRef = static_cast<void *>(static_cast<vcl::Window *>(pNew->mxRef)); return pNew; } - VclPtr<vcl::Window> getRef() { return mxRef; } + const VclPtr<vcl::Window>& getRef() { return mxRef; } void disposeAndClear() { mxRef.disposeAndClear(); |