From 9ea219dc5aa4b1cb64b73574c79ce645963d772d Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 12 May 2016 14:23:23 +0200 Subject: loplugin:passstuffbyref Change-Id: I5a98cea6402b0a02c0e7c329d07d05759a74ec95 --- cppuhelper/source/servicemanager.hxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cppuhelper/source/servicemanager.hxx b/cppuhelper/source/servicemanager.hxx index 1b9cfdb02449..8c81fd087522 100644 --- a/cppuhelper/source/servicemanager.hxx +++ b/cppuhelper/source/servicemanager.hxx @@ -207,7 +207,9 @@ public: void addSingletonContextEntries( std::vector< cppu::ContextEntry_Init > * entries); - css::uno::Reference< css::uno::XComponentContext > getContext() const { + css::uno::Reference< css::uno::XComponentContext > const & getContext() + const + { assert(context_.is()); return context_; } -- cgit