Add wextra level warnings.
This commit is contained in:
parent
e559f9674d
commit
119ea6f2cc
62 changed files with 235 additions and 231 deletions
|
@ -11,14 +11,14 @@ CanvasCommandSelectorView::CanvasCommandSelectorView()
|
|||
{
|
||||
auto circle_button = Button::Create();
|
||||
|
||||
auto on_circle_click = [this](Widget* self){
|
||||
auto on_circle_click = [this](Widget*){
|
||||
onCommandSelected(CanvasDrawCommand::CIRCLE);
|
||||
};
|
||||
circle_button->setLabel("Circle");
|
||||
circle_button->setMargin(2);
|
||||
circle_button->setOnClickFunction(on_circle_click);
|
||||
|
||||
auto on_line_click = [this](Widget* self){
|
||||
auto on_line_click = [this](Widget*){
|
||||
onCommandSelected(CanvasDrawCommand::LINE);
|
||||
};
|
||||
auto line_button = Button::Create();
|
||||
|
|
|
@ -31,7 +31,7 @@ bool CanvasDrawingArea::isDirty() const
|
|||
return Widget::isDirty() || mContentDirty;
|
||||
}
|
||||
|
||||
void CanvasDrawingArea::doPaint(const PaintEvent* event)
|
||||
void CanvasDrawingArea::doPaint(const PaintEvent*)
|
||||
{
|
||||
mContentDirty = false;
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ void TextEditorView::initialize()
|
|||
saveButton->setLabel("Save");
|
||||
saveButton->setBackground(Theme::Sys::Color::Primary);
|
||||
saveButton->setMargin(2);
|
||||
auto onSave = [this](Widget* self){
|
||||
auto onSave = [this](Widget*){
|
||||
if(mController && mTextBox)
|
||||
{
|
||||
mController->SetContent(mTextBox->getContent());
|
||||
|
@ -47,7 +47,7 @@ void TextEditorView::initialize()
|
|||
auto clearButton = Button::Create();
|
||||
clearButton->setLabel("Clear");
|
||||
clearButton->setMargin(2);
|
||||
auto onClear = [this](Widget* self){
|
||||
auto onClear = [this](Widget*){
|
||||
if(mController && mTextBox)
|
||||
{
|
||||
mController->OnClear();
|
||||
|
@ -59,7 +59,7 @@ void TextEditorView::initialize()
|
|||
auto loadButton = Button::Create();
|
||||
loadButton->setLabel("Load");
|
||||
loadButton->setMargin(2);
|
||||
auto onLoad = [this](Widget* self){
|
||||
auto onLoad = [this](Widget*){
|
||||
if(mController && mTextBox)
|
||||
{
|
||||
mController->OnLoad();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue