[chromium-style] auto variable type must not deduce to a raw pointer type

This commit is contained in:
Jeremy Apthorp 2018-04-17 15:41:47 -07:00
parent 667c43398c
commit a635f078c6
61 changed files with 189 additions and 188 deletions

View file

@ -17,7 +17,7 @@
namespace crash_reporter {
CrashReporter::CrashReporter() {
auto cmd = base::CommandLine::ForCurrentProcess();
auto* cmd = base::CommandLine::ForCurrentProcess();
is_browser_ = cmd->GetSwitchValueASCII(switches::kProcessType).empty();
}
@ -102,7 +102,7 @@ CrashReporter* CrashReporter::GetInstance() {
#endif
void CrashReporter::StartInstance(const mate::Dictionary& options) {
auto reporter = GetInstance();
auto* reporter = GetInstance();
if (!reporter)
return;

View file

@ -127,7 +127,7 @@ std::map<std::string, std::string> CrashReporterMac::GetParameters() const {
std::map<std::string, std::string> ret;
crashpad::SimpleStringDictionary::Iterator iter(*simple_string_dictionary_);
for(;;) {
const auto entry = iter.Next();
auto* const entry = iter.Next();
if (!entry) break;
ret[entry->key] = entry->value;
}