Pass -Wshadow (#97)

Requested from:
https://github.com/robinlinden/hastur/pull/12
This commit is contained in:
Arthur Sonzogni
2021-05-16 17:18:11 +02:00
committed by GitHub
parent cf4fdf257e
commit a574a6c3ee
16 changed files with 59 additions and 56 deletions

View File

@@ -49,8 +49,8 @@ RadioboxBase* RadioboxBase::From(Component component) {
}
RadioboxBase::RadioboxBase(const std::vector<std::wstring>* entries,
int* selected_)
: entries_(entries), selected_(selected_) {}
int* selected)
: entries_(entries), selected_(selected) {}
Element RadioboxBase::Render() {
std::vector<Element> elements;

View File

@@ -44,7 +44,7 @@ class TerminalInputParser {
CursorReporting cursor;
};
Output(Type type) : type(type) {}
Output(Type t) : type(t) {}
};
void Send(Output type);