From 650c6d5824222a8879df5c5ba9645c264ed3b84f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 23 Feb 2010 20:25:53 +0000 Subject: Fix various code quality issues found by cppcheck (e.g. uninitialized members, larger than necessary variable scope, memory leaks, etc). git-svn-id: svn://localhost/ardour2/branches/3.0@6710 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/processor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/ardour/processor.cc') diff --git a/libs/ardour/processor.cc b/libs/ardour/processor.cc index 65517be4b1..712ca927e5 100644 --- a/libs/ardour/processor.cc +++ b/libs/ardour/processor.cc @@ -111,7 +111,6 @@ XMLNode& Processor::state (bool full_state) { XMLNode* node = new XMLNode (state_node_name); - stringstream sstr; char buf[64]; id().print (buf, sizeof (buf)); @@ -129,6 +128,7 @@ Processor::state (bool full_state) || !automation.properties().empty() || !_visible_controls.empty()) { + stringstream sstr; for (set::iterator x = _visible_controls.begin(); x != _visible_controls.end(); ++x) { if (x != _visible_controls.begin()) { -- cgit v1.2.3