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 --- include/comphelper/propertysetinfo.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/comphelper/propertysetinfo.hxx') diff --git a/include/comphelper/propertysetinfo.hxx b/include/comphelper/propertysetinfo.hxx index 4676875d83a8..8b89fc3c42c8 100644 --- a/include/comphelper/propertysetinfo.hxx +++ b/include/comphelper/propertysetinfo.hxx @@ -65,7 +65,7 @@ public: /** returns a stl map with all PropertyMapEntry pointer.

The key is the property name. */ - const PropertyMap* getPropertyMap() const throw(); + const PropertyMap& getPropertyMap() const throw(); /** adds an array of PropertyMapEntry to this instance.

The end is marked with a PropertyMapEntry where mpName equals NULL

-- cgit