diff options
author | David Robillard <d@drobilla.net> | 2016-10-03 01:31:44 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-10-03 01:31:44 -0400 |
commit | f306bd871455b5eb27498e712ef605243df357d0 (patch) | |
tree | 35dba7a10752a619aae7c36be7de7534b185941c /sord | |
parent | 4b4d5fd2130c6d135e360ef1a76d285cc4079708 (diff) | |
download | sord-f306bd871455b5eb27498e712ef605243df357d0.tar.gz sord-f306bd871455b5eb27498e712ef605243df357d0.tar.bz2 sord-f306bd871455b5eb27498e712ef605243df357d0.zip |
Avoid unnecessary node copying
Diffstat (limited to 'sord')
-rw-r--r-- | sord/sordmm.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sord/sordmm.hpp b/sord/sordmm.hpp index bc0c456..83281c8 100644 --- a/sord/sordmm.hpp +++ b/sord/sordmm.hpp @@ -642,9 +642,7 @@ Model::get(const Node& subject, { SordNode* c_node = sord_get( _c_obj, subject.c_obj(), predicate.c_obj(), object.c_obj(), NULL); - Node node(_world, c_node); - sord_node_free(_world.c_obj(), c_node); - return node; + return Node(_world, c_node, false); } } // namespace Sord |