Remove all occurrences of "using std::string".

BUG=webrtc:7104
NOTRY=True

Review-Url: https://codereview.webrtc.org/2675723002
Cr-Commit-Position: refs/heads/master@{#16418}
This commit is contained in:
ehmaldonado
2017-02-02 08:10:00 -08:00
committed by Commit bot
parent e372d3c519
commit 1dffc62843
10 changed files with 18 additions and 31 deletions

View File

@ -18,7 +18,6 @@
using google::RegisterFlagValidator;
using google::ParseCommandLineFlags;
using std::string;
using testing::InitGoogleTest;
namespace webrtc {

View File

@ -13,7 +13,6 @@
using google::RegisterFlagValidator;
using google::ParseCommandLineFlags;
using std::string;
using testing::InitGoogleTest;
namespace webrtc {

View File

@ -14,7 +14,6 @@
using google::RegisterFlagValidator;
using google::ParseCommandLineFlags;
using std::string;
using testing::InitGoogleTest;
namespace webrtc {

View File

@ -18,7 +18,6 @@
using google::RegisterFlagValidator;
using google::ParseCommandLineFlags;
using std::string;
using testing::InitGoogleTest;
namespace webrtc {

View File

@ -18,8 +18,6 @@
#include "webrtc/modules/audio_coding/neteq/tools/resample_input_audio_file.h"
#include "webrtc/test/testsupport/fileutils.h"
using std::string;
namespace webrtc {
namespace test {
@ -29,7 +27,7 @@ const int kInitSeed = 0x12345678;
const int kPacketLossTimeUnitMs = 10;
// Common validator for file names.
static bool ValidateFilename(const string& value, bool write) {
static bool ValidateFilename(const std::string& value, bool write) {
FILE* fid = write ? fopen(value.c_str(), "wb") : fopen(value.c_str(), "rb");
if (fid == nullptr)
return false;
@ -38,7 +36,7 @@ static bool ValidateFilename(const string& value, bool write) {
}
// Define switch for input file name.
static bool ValidateInFilename(const char* flagname, const string& value) {
static bool ValidateInFilename(const char* flagname, const std::string& value) {
if (!ValidateFilename(value, false)) {
printf("Invalid input filename.");
return false;
@ -82,7 +80,8 @@ static const bool channels_dummy =
RegisterFlagValidator(&FLAGS_channels, &ValidateChannels);
// Define switch for output file name.
static bool ValidateOutFilename(const char* flagname, const string& value) {
static bool ValidateOutFilename(const char* flagname,
const std::string& value) {
if (!ValidateFilename(value, true)) {
printf("Invalid output filename.");
return false;