MCPcopy Create free account
hub / github.com/audacity/audacity / ~SelectionStateChanger

Method ~SelectionStateChanger

libraries/lib-track-selection/SelectionState.cpp:170–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170SelectionStateChanger::~SelectionStateChanger()
171{
172 if ( mpState ) {
173 // roll back changes
174 mpState->mLastPickedTrack = mInitialLastPickedTrack;
175 std::vector<bool>::const_iterator
176 it = mInitialTrackSelection.begin(),
177 end = mInitialTrackSelection.end();
178
179 for (auto track : mTracks) {
180 if (it == end)
181 break;
182 track->SetSelected( *it++ );
183 }
184 }
185}
186
187void SelectionStateChanger::Commit()
188{

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
SetSelectedMethod · 0.45

Tested by

no test coverage detected