From 2a1fb4401da16f6a18c0bd05fe4b460a3048f9b5 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 22 Dec 2017 14:23:16 +0200 Subject: loplugin:passstuffbyref improved returns improve the detection of stuff we can return by const &, instead of by copying Change-Id: I479ae89d0413125a8295cc3cddbc0017ed61ed69 Reviewed-on: https://gerrit.libreoffice.org/46915 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cppu/source/threadpool/threadpool.cxx | 2 +- cppu/source/threadpool/threadpool.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'cppu') diff --git a/cppu/source/threadpool/threadpool.cxx b/cppu/source/threadpool/threadpool.cxx index a3a3eab51d01..dcbe2ae0734d 100644 --- a/cppu/source/threadpool/threadpool.cxx +++ b/cppu/source/threadpool/threadpool.cxx @@ -53,7 +53,7 @@ namespace cppu_threadpool } }; - DisposedCallerAdminHolder DisposedCallerAdmin::getInstance() + DisposedCallerAdminHolder const & DisposedCallerAdmin::getInstance() { return theDisposedCallerAdmin::get(); } diff --git a/cppu/source/threadpool/threadpool.hxx b/cppu/source/threadpool/threadpool.hxx index 9b4d8cf661d3..85188fc52fd5 100644 --- a/cppu/source/threadpool/threadpool.hxx +++ b/cppu/source/threadpool/threadpool.hxx @@ -82,7 +82,7 @@ namespace cppu_threadpool { public: ~DisposedCallerAdmin(); - static DisposedCallerAdminHolder getInstance(); + static DisposedCallerAdminHolder const & getInstance(); void dispose( sal_Int64 nDisposeId ); void destroy( sal_Int64 nDisposeId ); -- cgit