13
0

fix some static-analysis warnings

This commit is contained in:
Robin Gareus 2015-02-19 20:37:58 +01:00
parent aea700fbc4
commit b489385bf1
2 changed files with 1 additions and 1 deletions

View File

@ -1241,6 +1241,7 @@ Selection::get_state () const
}
list<pair<PBD::ID, std::set<boost::shared_ptr<Evoral::Note<Evoral::Beats> > > > >::iterator rn_it;
for (rn_it = rid_notes.begin(); rn_it != rid_notes.end(); ++rn_it) {
assert(n); // hint for clang static analysis
n->add_property (X_("region_id"), atoi((*rn_it).first.to_s().c_str()));
for (std::set<boost::shared_ptr<Evoral::Note<Evoral::Beats> > >::iterator i = (*rn_it).second.begin(); i != (*rn_it).second.end(); ++i) {

View File

@ -1176,7 +1176,6 @@ IO::parse_gain_string (const string& str, vector<string>& ports)
{
string::size_type pos, opos;
pos = 0;
opos = 0;
ports.clear ();