From ddd18681ba68ce1a8bff47fc14f663922c1d4ae6 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sun, 16 Sep 2012 04:38:07 +0200 Subject: [PATCH] help: fix shadow warning --- src/help.cpp | 4 ++-- src/help.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/help.cpp b/src/help.cpp index 4a7f0784..2b31b1e4 100644 --- a/src/help.cpp +++ b/src/help.cpp @@ -139,9 +139,9 @@ std::string Help::DisplayKeys(const ActionType at) return result; } -void Help::Section(const char *type, const char *title_) +void Help::Section(const char *type_, const char *title_) { - w << L"\n " << NC::fmtBold << ToWString(type) << L" - "; + w << L"\n " << NC::fmtBold << ToWString(type_) << L" - "; w << ToWString(title_) << NC::fmtBoldEnd << L"\n\n"; } diff --git a/src/help.h b/src/help.h index 8383de7c..b9aca29a 100644 --- a/src/help.h +++ b/src/help.h @@ -48,7 +48,7 @@ protected: private: void KeysSection(const char *title_) { Section("Keys", title_); } void MouseSection(const char *title_) { Section("Mouse", title_); } - void Section(const char *type, const char *title_); + void Section(const char *type_, const char *title_); void KeyDesc(const ActionType at, const char *desc); void MouseDesc(std::string action, const char *desc, bool indent = false); void MouseColumn(const char *column);