Remove global "using namespace std;" declarations, use "std::" prefixes on all std elements
Fix whitespace changes
This commit is contained in:
committed by
Martin Natano
parent
f0680a29fc
commit
0cba3579de
@@ -72,7 +72,7 @@ void UnexpectedExceptionHandler()
|
||||
|
||||
void InstallExceptionHandler()
|
||||
{
|
||||
set_terminate( UnexpectedExceptionHandler );
|
||||
std::set_terminate( UnexpectedExceptionHandler );
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -500,7 +500,7 @@ static bool PointsToValidCall( vm_address_t start, const void *ptr )
|
||||
|
||||
/* We're reading buf backwards, between buf[-7] and buf[-1]. Find out how
|
||||
* far we can read. */
|
||||
const int len = min( intptr_t(ptr)-start, 7U );
|
||||
const int len = std::min<int>(intptr_t(ptr) - start, 7);
|
||||
|
||||
// Permissible CALL sequences that we care about:
|
||||
//
|
||||
|
||||
@@ -371,7 +371,7 @@ void CrashHandler::ForceDeadlock( RString reason, uint64_t iID )
|
||||
|
||||
strncpy( crash.m_ThreadName[0], RageThread::GetCurrentThreadName(), sizeof(crash.m_ThreadName[0])-1 );
|
||||
|
||||
strncpy( crash.reason, reason, min(sizeof(crash.reason) - 1, reason.length()) );
|
||||
strncpy( crash.reason, reason, std::min(sizeof(crash.reason) - 1, reason.length()) );
|
||||
crash.reason[ sizeof(crash.reason)-1 ] = 0;
|
||||
|
||||
RunCrashHandler( &crash );
|
||||
|
||||
@@ -134,7 +134,7 @@ static void child_process()
|
||||
if( !child_read(3, temp, size) )
|
||||
return;
|
||||
|
||||
vector<RString> Checkpoints;
|
||||
std::vector<RString> Checkpoints;
|
||||
split(temp, "$$", Checkpoints);
|
||||
delete [] temp;
|
||||
|
||||
|
||||
@@ -31,8 +31,8 @@ extern "C" int sigaltstack(const stack_t * __restrict, stack_t * __restrict);
|
||||
static int find_stack_direction2( char *p ) NOINLINE;
|
||||
static int find_stack_direction() NOINLINE;
|
||||
|
||||
static vector<SignalHandler::handler> handlers;
|
||||
unique_ptr<SaveSignals> saved_sigs;
|
||||
static std::vector<SignalHandler::handler> handlers;
|
||||
std::unique_ptr<SaveSignals> saved_sigs;
|
||||
|
||||
static int signals[] =
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
class SaveSignals
|
||||
{
|
||||
vector<struct sigaction> old_handlers;
|
||||
std::vector<struct sigaction> old_handlers;
|
||||
|
||||
public:
|
||||
SaveSignals(); /* save signals */
|
||||
|
||||
Reference in New Issue
Block a user