simplify
This commit is contained in:
@@ -325,7 +325,7 @@ void RageSoundManager::AddLoadedSound( const RString &sPath_, RageSoundReader_Pr
|
|||||||
it = m_mapPreloadedSounds.find( sPath );
|
it = m_mapPreloadedSounds.find( sPath );
|
||||||
ASSERT_M( it == m_mapPreloadedSounds.end(), sPath );
|
ASSERT_M( it == m_mapPreloadedSounds.end(), sPath );
|
||||||
|
|
||||||
m_mapPreloadedSounds[sPath] = (RageSoundReader_Preload *) pSound->Copy();
|
m_mapPreloadedSounds[sPath] = pSound->Copy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1047,12 +1047,12 @@ int RageSoundReader_MP3::GetLengthInternal( bool fast )
|
|||||||
|
|
||||||
int RageSoundReader_MP3::GetLengthConst( bool fast ) const
|
int RageSoundReader_MP3::GetLengthConst( bool fast ) const
|
||||||
{
|
{
|
||||||
RageSoundReader_MP3 *cpy = (RageSoundReader_MP3 *) Copy();
|
RageSoundReader_MP3 *pCopy = this->Copy();
|
||||||
|
|
||||||
int length = cpy->GetLengthInternal( fast );
|
int iLength = pCopy->GetLengthInternal( fast );
|
||||||
|
|
||||||
delete cpy;
|
delete pCopy;
|
||||||
return length;
|
return iLength;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user