Fix some minor std::function-related bugs.

Lambdas to be stored in `function<void()>` should not return `bool`.

Two uses of `std::function` could be just `function`, like everywhere
else in the codebase.
This commit is contained in:
Arthur O'Dwyer
2019-02-06 18:48:53 +01:00
committed by Zeno Rogue
parent 26fe57ef92
commit a478bb1485
4 changed files with 6 additions and 9 deletions
+1 -2
View File
@@ -473,7 +473,7 @@ namespace dialog {
color_t *colorPointer;
bool handleKeyColor(int sym, int uni) {
void handleKeyColor(int sym, int uni) {
unsigned& color = *colorPointer;
int shift = colorAlpha ? 0 : 8;
@@ -514,7 +514,6 @@ namespace dialog {
else if(doexiton(sym, uni)) {
popScreen();
}
return false;
}
bool colorAlpha;