Decouple <cstddef>

This commit is contained in:
Martin Natano
2023-04-20 11:21:29 +02:00
parent 093675cdc3
commit 78fb2e9fc3
171 changed files with 2012 additions and 1786 deletions
+6 -5
View File
@@ -4,9 +4,10 @@
#include "RageLog.h"
#include "arch/Dialog/Dialog.h"
#include <cstddef>
#include <numeric>
RString Command::GetName() const
RString Command::GetName() const
{
if( m_vsArgs.empty() )
return RString();
@@ -41,9 +42,9 @@ static void SplitWithQuotes( const RString sSource, const char Delimitor, std::v
if( sSource.empty() )
return;
size_t startpos = 0;
std::size_t startpos = 0;
do {
size_t pos = startpos;
std::size_t pos = startpos;
while( pos < sSource.size() )
{
if( sSource[pos] == Delimitor )
@@ -110,7 +111,7 @@ Commands ParseCommands( const RString &sCommands )
/*
* (c) 2004 Chris Danford
* All rights reserved.
*
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
@@ -120,7 +121,7 @@ Commands ParseCommands( const RString &sCommands )
* copyright notice(s) and this permission notice appear in all copies of
* the Software and that both the above copyright notice(s) and this
* permission notice appear in supporting documentation.
*
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF