From 31c80e3d4d222ddd8dfaceff9b84308e99a05df4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 31 May 2012 06:31:11 +0000 Subject: Fix returned reference to temporary. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4489 a436a847-0d15-0410-975c-d299462d15a1 --- src/shared/ResourceImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/ResourceImpl.cpp b/src/shared/ResourceImpl.cpp index 13284cf4..be3d445f 100644 --- a/src/shared/ResourceImpl.cpp +++ b/src/shared/ResourceImpl.cpp @@ -103,7 +103,7 @@ ResourceImpl::set_property(const Raul::URI& uri, const Raul::Atom& value) const const Raul::Atom& ResourceImpl::get_property(const Raul::URI& uri) const { - const Raul::Atom nil; + static const Raul::Atom nil; Properties::const_iterator i = _properties.find(uri); return (i != _properties.end()) ? i->second : nil; } -- cgit v1.2.1