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:
parent
a975805ae8
commit
d1d21b16dc
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user