diff options
author | David Robillard <d@drobilla.net> | 2010-02-23 20:25:53 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-02-23 20:25:53 +0000 |
commit | 650c6d5824222a8879df5c5ba9645c264ed3b84f (patch) | |
tree | 7cd5aace00cb23622f07727ae4f7963c03dd05c9 /libs/ardour/panner.cc | |
parent | 0c20d48e7d436725396baf362368f7ce61717151 (diff) |
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
Diffstat (limited to 'libs/ardour/panner.cc')
-rw-r--r-- | libs/ardour/panner.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/ardour/panner.cc b/libs/ardour/panner.cc index d3ce72679a..3f4aee0cf7 100644 --- a/libs/ardour/panner.cc +++ b/libs/ardour/panner.cc @@ -228,6 +228,10 @@ StreamPanner::distribute_automated (AudioBuffer& src, BufferSet& obufs, BaseStereoPanner::BaseStereoPanner (Panner& p, Evoral::Parameter param) : StreamPanner (p, param) + , left (0.5) + , right (0.5) + , left_interp (left) + , right_interp (right) { } @@ -546,11 +550,10 @@ int EqualPowerStereoPanner::set_state (const XMLNode& node, int version) { const XMLProperty* prop; - float pos; LocaleGuard lg (X_("POSIX")); if ((prop = node.property (X_("x")))) { - pos = atof (prop->value().c_str()); + const float pos = atof (prop->value().c_str()); set_position (pos, true); } |