Decouple <cstddef>
This commit is contained in:
@@ -18,6 +18,8 @@
|
||||
#include "ActorUtil.h"
|
||||
#include "RageFileManager.h"
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
/* BMS encoding: tap-hold
|
||||
* 4&8panel: Player1 Player2
|
||||
* Left 11-51 21-61
|
||||
@@ -408,14 +410,14 @@ struct bmsCommandTree
|
||||
return;
|
||||
|
||||
// LTrim the statement to allow indentation
|
||||
size_t hash = statement.find('#');
|
||||
std::size_t hash = statement.find('#');
|
||||
|
||||
if (hash == RString::npos)
|
||||
return;
|
||||
|
||||
statement = statement.substr(hash);
|
||||
|
||||
size_t space = statement.find(' ');
|
||||
std::size_t space = statement.find(' ');
|
||||
RString name = statement.substr(0, space);
|
||||
RString value = "";
|
||||
|
||||
@@ -649,7 +651,7 @@ int BMSSong::AllocateKeysound( RString filename, RString path )
|
||||
if( !IsAFile(dir + normalizedFilename) )
|
||||
{
|
||||
std::vector<RString> const& exts= ActorUtil::GetTypeExtensionList(FT_Sound);
|
||||
for(size_t i = 0; i < exts.size(); ++i)
|
||||
for(std::size_t i = 0; i < exts.size(); ++i)
|
||||
{
|
||||
RString fn = SetExtension( normalizedFilename, exts[i] );
|
||||
if( IsAFile(dir + fn) )
|
||||
@@ -716,7 +718,7 @@ bool BMSSong::GetBackground( RString filename, RString path, RString &bgfile )
|
||||
std::vector<RString> exts;
|
||||
ActorUtil::AddTypeExtensionsToList(FT_Movie, exts);
|
||||
ActorUtil::AddTypeExtensionsToList(FT_Bitmap, exts);
|
||||
for(size_t i = 0; i < exts.size(); ++i)
|
||||
for(std::size_t i = 0; i < exts.size(); ++i)
|
||||
{
|
||||
RString fn = SetExtension( normalizedFilename, exts[i] );
|
||||
if( IsAFile(dir + fn) )
|
||||
|
||||
Reference in New Issue
Block a user