Decouple <cstddef>

This commit is contained in:
Martin Natano
2023-04-19 23:04:25 +02:00
parent 093675cdc3
commit 78fb2e9fc3
171 changed files with 2012 additions and 1786 deletions
+6 -4
View File
@@ -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) )