From e2080e70fe8b085f18e868e46340454720fa94ca Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 18 Jun 2014 12:14:29 +0200 Subject: new compilerplugin returnbyref Find places where we are returning a pointer to something, where we can be returning a reference. e.g. class A { struct X x; public X* getX() { return &x; } } which can be: public X& getX() { return x; } Change-Id: I796fd23fd36a18aedf6e36bc28f8fab4f518c6c7 --- binaryurp/source/bridge.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'binaryurp/source/bridge.cxx') diff --git a/binaryurp/source/bridge.cxx b/binaryurp/source/bridge.cxx index dc0f3476bb9a..9191d2349e50 100644 --- a/binaryurp/source/bridge.cxx +++ b/binaryurp/source/bridge.cxx @@ -352,7 +352,7 @@ BinaryAny Bridge::mapCppToBinaryAny(css::uno::Any const & cppAny) { BinaryAny out; out.~BinaryAny(); uno_copyAndConvertData( - out.get(), &in, + &out.get(), &in, css::uno::TypeDescription(cppu::UnoType< css::uno::Any >::get()).get(), cppToBinaryMapping_.get()); return out; @@ -992,7 +992,7 @@ css::uno::Any Bridge::mapBinaryToCppAny(BinaryAny const & binaryAny) { css::uno::Any out; out.~Any(); uno_copyAndConvertData( - &out, in.get(), + &out, &in.get(), css::uno::TypeDescription(cppu::UnoType< css::uno::Any >::get()).get(), binaryToCppMapping_.get()); return out; -- cgit