From a1da3ac5c84d2cffe25fba199815cd4dc839c862 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 31 Mar 2014 03:59:04 +0000 Subject: Fix running GUI remotely and as an LV2 plugin. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5354 a436a847-0d15-0410-975c-d299462d15a1 --- ingen/AtomWriter.hpp | 3 +-- src/AtomWriter.cpp | 11 ++--------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/ingen/AtomWriter.hpp b/ingen/AtomWriter.hpp index c591c528..c7ac3cc6 100644 --- a/ingen/AtomWriter.hpp +++ b/ingen/AtomWriter.hpp @@ -84,8 +84,7 @@ private: void forge_arc(const Raul::Path& tail, const Raul::Path& head); void forge_request(LV2_Atom_Forge_Frame* frame, LV2_URID type); - void finish_msg(); - int32_t next_id(); + void finish_msg(); URIMap& _map; URIs& _uris; diff --git a/src/AtomWriter.cpp b/src/AtomWriter.cpp index 78e54ffa..7c956ece 100644 --- a/src/AtomWriter.cpp +++ b/src/AtomWriter.cpp @@ -64,12 +64,6 @@ AtomWriter::finish_msg() _out.len = 0; } -int32_t -AtomWriter::next_id() -{ - return _id ? ++_id : 0; -} - void AtomWriter::bundle_begin() { @@ -121,10 +115,9 @@ AtomWriter::forge_request(LV2_Atom_Forge_Frame* frame, LV2_URID type) { lv2_atom_forge_object(&_forge, frame, 0, type); - const int32_t id = next_id(); - if (id) { + if (_id) { lv2_atom_forge_key(&_forge, _uris.patch_sequenceNumber); - lv2_atom_forge_int(&_forge, id); + lv2_atom_forge_int(&_forge, _id); } } -- cgit v1.2.1