From: <sag...@us...> - 2015-03-19 04:44:45
|
Revision: 4898 http://sourceforge.net/p/modplug/code/4898 Author: saga-games Date: 2015-03-19 04:44:32 +0000 (Thu, 19 Mar 2015) Log Message: ----------- [Fix] Fix initialization order for GetLengthMemory (triggered warning) Modified Paths: -------------- trunk/OpenMPT/soundlib/Snd_fx.cpp Modified: trunk/OpenMPT/soundlib/Snd_fx.cpp =================================================================== --- trunk/OpenMPT/soundlib/Snd_fx.cpp 2015-03-19 04:36:50 UTC (rev 4897) +++ trunk/OpenMPT/soundlib/Snd_fx.cpp 2015-03-19 04:44:32 UTC (rev 4898) @@ -41,8 +41,10 @@ // Memory class for GetLength() code class GetLengthMemory { +protected: + const CSoundFile &sndFile; + public: - CSoundFile::PlayState state; struct ChnSettings { @@ -64,15 +66,10 @@ double elapsedTime; static const uint32 IGNORE_CHANNEL = uint32_max; -protected: - const CSoundFile &sndFile; - -public: - GetLengthMemory(const CSoundFile &sf) : sndFile(sf) + , state(sf.m_PlayState) , chnSettings(sf.GetNumChannels()) - , state(sf.m_PlayState) { Reset(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |