summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-31 06:31:11 +0000
committerDavid Robillard <d@drobilla.net>2012-05-31 06:31:11 +0000
commit31c80e3d4d222ddd8dfaceff9b84308e99a05df4 (patch)
treeb65c6c26fd02a04097a6630c68184ec3ac8ad8e4 /src/shared
parent9fd21f53cc22d19534bc1746c0f6a47d9c3b6b9a (diff)
downloadingen-31c80e3d4d222ddd8dfaceff9b84308e99a05df4.tar.gz
ingen-31c80e3d4d222ddd8dfaceff9b84308e99a05df4.tar.bz2
ingen-31c80e3d4d222ddd8dfaceff9b84308e99a05df4.zip
Fix returned reference to temporary.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4489 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/ResourceImpl.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}