Remove "using namespace std" from header files

This commit is contained in:
Jon Siwek 2019-10-30 12:26:10 -07:00
parent 13a431f9fb
commit 62161dcc34
18 changed files with 78 additions and 85 deletions

View file

@ -6,7 +6,6 @@
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
#include "Queue.h"
#include "DebugCmdConstants.h"
@ -23,7 +22,7 @@ public:
int Cmd() const { return cmd; }
int NumNames() const { return num_names; }
const vector<const char *>& Names() const { return names; }
const std::vector<const char *>& Names() const { return names; }
bool ResumeExecution() const { return resume_execution; }
const char* Helpstring() const { return helpstring; }
bool Repeatable() const { return repeatable; }
@ -32,7 +31,7 @@ protected:
DebugCmd cmd;
int num_names;
vector<const char*> names;
std::vector<const char*> names;
// Whether executing this should restart execution of the script.
bool resume_execution;
@ -57,14 +56,14 @@ const DebugCmdInfo* get_debug_cmd_info(DebugCmd cmd);
// on whether or not the prefix supplied matches a name (DebugCmdString)
// of the corresponding DebugCmd. The size of the array should be at
// least NUM_DEBUG_CMDS. The total number of matches is returned.
int find_all_matching_cmds(const string& prefix, const char* array_of_matches[]);
int find_all_matching_cmds(const std::string& prefix, const char* array_of_matches[]);
// Implementation of debugging commands.
//
// These functions return <= 0 if failure, > 0 for success.
// More particular return values are command-specific: see comments w/function.
typedef int DbgCmdFn(DebugCmd cmd, const vector<string>& args);
typedef int DbgCmdFn(DebugCmd cmd, const std::vector<std::string>& args);
DbgCmdFn dbg_cmd_backtrace;
DbgCmdFn dbg_cmd_frame;