Update copy/move constructors/operators

Former-commit-id: b1faeeae9211a6c0ca29261d46929dc8c66ea0c4
This commit is contained in:
Lynix
2015-09-24 12:51:52 +02:00
parent dea3fb4e39
commit c214251ecf
24 changed files with 89 additions and 19 deletions

View File

@@ -18,6 +18,7 @@ class NAZARA_AUDIO_API NzSound : public NzSoundEmitter
NzSound() = default;
NzSound(const NzSoundBuffer* soundBuffer);
NzSound(const NzSound& sound);
NzSound(NzSound&&) = default;
~NzSound();
void EnableLooping(bool loop);
@@ -43,6 +44,9 @@ class NAZARA_AUDIO_API NzSound : public NzSoundEmitter
void Stop();
NzSound& operator=(const NzSound&) = delete; ///TODO?
NzSound& operator=(NzSound&&) = default;
private:
NzSoundBufferConstRef m_buffer;
};