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

Unified Diff: tools/gn/command_help.cc

Issue 1705123004: Fix styleguide violations from https://codereview.chromium.org/1681363003 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/command_help.cc
diff --git a/tools/gn/command_help.cc b/tools/gn/command_help.cc
index 18cb6d127601b4005d262f826547694cd698328e..a486a72cc2de8f15e35148a682b6a9467eca2731 100644
--- a/tools/gn/command_help.cc
+++ b/tools/gn/command_help.cc
@@ -222,17 +222,17 @@ int RunHelp(const std::vector<std::string>& args) {
all_help_topics.push_back(entry.first);
// Random other topics.
- std::map<std::string, std::function<void()>> random_topics;
+ std::map<std::string, void(*)()> random_topics;
random_topics["all"] = PrintAllHelp;
- random_topics["buildargs"] = [=]() { PrintLongHelp(kBuildArgs_Help); };
- random_topics["dotfile"] = [=]() { PrintLongHelp(kDotfile_Help); };
- random_topics["grammar"] = [=]() { PrintLongHelp(kGrammar_Help); };
- random_topics["input_conversion"] = [=]() {
+ random_topics["buildargs"] = []() { PrintLongHelp(kBuildArgs_Help); };
+ random_topics["dotfile"] = []() { PrintLongHelp(kDotfile_Help); };
+ random_topics["grammar"] = []() { PrintLongHelp(kGrammar_Help); };
+ random_topics["input_conversion"] = []() {
PrintLongHelp(kInputConversion_Help);
};
- random_topics["label_pattern"] = [=]() { PrintLongHelp(kLabelPattern_Help); };
- random_topics["runtime_deps"] = [=]() { PrintLongHelp(kRuntimeDeps_Help); };
- random_topics["source_expansion"] = [=]() {
+ random_topics["label_pattern"] = []() { PrintLongHelp(kLabelPattern_Help); };
+ random_topics["runtime_deps"] = []() { PrintLongHelp(kRuntimeDeps_Help); };
+ random_topics["source_expansion"] = []() {
PrintLongHelp(kSourceExpansion_Help);
};
random_topics["switches"] = PrintSwitchHelp;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698