[chromium-style] auto variable type must not deduce to a raw pointer type
This commit is contained in:
parent
667c43398c
commit
a635f078c6
61 changed files with 189 additions and 188 deletions
|
@ -35,7 +35,7 @@ void RemoteCallbackFreer::RunDestructor() {
|
|||
base::ASCIIToUTF16("ELECTRON_RENDERER_RELEASE_CALLBACK");
|
||||
base::ListValue args;
|
||||
args.AppendInteger(object_id_);
|
||||
auto frame_host = web_contents()->GetMainFrame();
|
||||
auto* frame_host = web_contents()->GetMainFrame();
|
||||
if (frame_host) {
|
||||
frame_host->Send(new AtomFrameMsg_Message(frame_host->GetRoutingID(), false,
|
||||
channel, args));
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -114,7 +114,7 @@ std::unique_ptr<const char* []> StringVectorToArgArray(
|
|||
}
|
||||
|
||||
base::FilePath GetResourcesPath(bool is_browser) {
|
||||
auto command_line = base::CommandLine::ForCurrentProcess();
|
||||
auto* command_line = base::CommandLine::ForCurrentProcess();
|
||||
base::FilePath exec_path(command_line->GetProgram());
|
||||
PathService::Get(base::FILE_EXE, &exec_path);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue