Mercurial > hg > svcore
comparison base/PlayParameterRepository.cpp @ 1429:48e9f538e6e9
Untabify
author | Chris Cannam |
---|---|
date | Thu, 01 Mar 2018 18:02:22 +0000 |
parents | 655cd4e68e9a |
children | 70e172e6cc59 |
comparison
equal
deleted
inserted
replaced
1428:87ae75da6527 | 1429:48e9f538e6e9 |
---|---|
37 { | 37 { |
38 // cerr << "PlayParameterRepository:addPlayable playable = " << playable << endl; | 38 // cerr << "PlayParameterRepository:addPlayable playable = " << playable << endl; |
39 | 39 |
40 if (!getPlayParameters(playable)) { | 40 if (!getPlayParameters(playable)) { |
41 | 41 |
42 // Give all playables the same type of play parameters for the | 42 // Give all playables the same type of play parameters for the |
43 // moment | 43 // moment |
44 | 44 |
45 // cerr << "PlayParameterRepository:addPlayable: Adding play parameters for " << playable << endl; | 45 // cerr << "PlayParameterRepository:addPlayable: Adding play parameters for " << playable << endl; |
46 | 46 |
47 PlayParameters *params = new PlayParameters; | 47 PlayParameters *params = new PlayParameters; |
48 m_playParameters[playable] = params; | 48 m_playParameters[playable] = params; |
119 void | 119 void |
120 PlayParameterRepository::clear() | 120 PlayParameterRepository::clear() |
121 { | 121 { |
122 // cerr << "PlayParameterRepository: PlayParameterRepository::clear" << endl; | 122 // cerr << "PlayParameterRepository: PlayParameterRepository::clear" << endl; |
123 while (!m_playParameters.empty()) { | 123 while (!m_playParameters.empty()) { |
124 delete m_playParameters.begin()->second; | 124 delete m_playParameters.begin()->second; |
125 m_playParameters.erase(m_playParameters.begin()); | 125 m_playParameters.erase(m_playParameters.begin()); |
126 } | 126 } |
127 } | 127 } |
128 | 128 |
129 PlayParameterRepository::EditCommand::EditCommand(PlayParameters *params) : | 129 PlayParameterRepository::EditCommand::EditCommand(PlayParameters *params) : |
130 m_params(params) | 130 m_params(params) |