mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-26 08:27:43 +01:00
Quell more compiler warnings
bool solo is now initialized properly and get_snapshot_by_name always returns a MixerSnapshot pointer
This commit is contained in:
parent
06302e2e8b
commit
8b59e50980
2 changed files with 5 additions and 1 deletions
|
|
@ -416,6 +416,7 @@ void MixerSnapshot::recall()
|
|||
bool gain, mute, solo, recenable, select, route_active, monitoring;
|
||||
state.node.get_property(X_("used-to-share-gain"), gain);
|
||||
state.node.get_property(X_("mute"), mute);
|
||||
state.node.get_property(X_("solo"), solo);
|
||||
state.node.get_property(X_("recenable"), recenable);
|
||||
state.node.get_property(X_("select"), select);
|
||||
state.node.get_property(X_("route-active"), route_active);
|
||||
|
|
|
|||
|
|
@ -190,13 +190,16 @@ bool MixerSnapshotManager::demote(MixerSnapshot* snapshot) {
|
|||
MixerSnapshot* MixerSnapshotManager::get_snapshot_by_name(const string& name, bool global)
|
||||
{
|
||||
set<MixerSnapshot*> snapshots_list = global ? _global_snapshots : _local_snapshots;
|
||||
MixerSnapshot* snapshot;
|
||||
|
||||
set<MixerSnapshot*>::iterator it;
|
||||
for(it = snapshots_list.begin(); it != snapshots_list.end(); it++) {
|
||||
if((*it)->get_label() == name) {
|
||||
return (*it);
|
||||
snapshot = (*it);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return snapshot;
|
||||
}
|
||||
|
||||
void MixerSnapshotManager::create_snapshot(const string& label, const string& desc, RouteList& rl, bool global)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue