1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

- replaced auto_ptr with c++11 unique_ptr

This commit is contained in:
Ivan Savenko 2012-02-17 20:34:34 +00:00
parent a975805ae8
commit d1d21b16dc
2 changed files with 4 additions and 4 deletions

View File

@ -421,7 +421,7 @@ void CMusicHandler::queueNext(MusicEntry *queued)
}
else
{
current = next;
current.reset(next.release());
current->play();
}
}
@ -465,7 +465,7 @@ void CMusicHandler::musicFinishedCallback(void)
if (current.get() == NULL && next.get() != NULL)
{
current = next;
current.reset(next.release());
current->play();
}
}

View File

@ -145,8 +145,8 @@ private:
SettingsListener listener;
void onVolumeChange(const JsonNode &volumeNode);
std::auto_ptr<MusicEntry> current;
std::auto_ptr<MusicEntry> next;
std::unique_ptr<MusicEntry> current;
std::unique_ptr<MusicEntry> next;
void queueNext(MusicEntry *queued);
public: