Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Unified Diff: webrtc/tools/simple_command_line_parser.cc

Issue 2675723002: Remove all occurrences of "using std::string". (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/tools/frame_editing/frame_editing_lib.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/tools/simple_command_line_parser.cc
diff --git a/webrtc/tools/simple_command_line_parser.cc b/webrtc/tools/simple_command_line_parser.cc
index 62aba3d04f744abb35fba5e497f3fe5f368e26b1..863e7a904def52908b7043507e584a0e523dbf1a 100644
--- a/webrtc/tools/simple_command_line_parser.cc
+++ b/webrtc/tools/simple_command_line_parser.cc
@@ -18,8 +18,6 @@
namespace webrtc {
namespace test {
-using std::string;
-
CommandLineParser::CommandLineParser() {}
CommandLineParser::~CommandLineParser() {}
@@ -28,7 +26,7 @@ void CommandLineParser::Init(int argc, char** argv) {
}
bool CommandLineParser::IsStandaloneFlag(std::string flag) {
- return flag.find("=") == string::npos;
+ return flag.find("=") == std::string::npos;
}
bool CommandLineParser::IsFlagWellFormed(std::string flag) {
@@ -55,7 +53,7 @@ bool CommandLineParser::IsFlagWellFormed(std::string flag) {
std::string CommandLineParser::GetCommandLineFlagName(std::string flag) {
size_t dash_pos = flag.find("--");
size_t equal_pos = flag.find("=");
- if (equal_pos == string::npos) {
+ if (equal_pos == std::string::npos) {
return flag.substr(dash_pos + 2);
} else {
return flag.substr(dash_pos + 2, equal_pos - 2);
@@ -64,7 +62,7 @@ std::string CommandLineParser::GetCommandLineFlagName(std::string flag) {
std::string CommandLineParser::GetCommandLineFlagValue(std::string flag) {
size_t equal_pos = flag.find("=");
- if (equal_pos == string::npos) {
+ if (equal_pos == std::string::npos) {
return "";
} else {
return flag.substr(equal_pos + 1);
« no previous file with comments | « webrtc/tools/frame_editing/frame_editing_lib.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698