diff --git a/data/widgets/replace_color.xml b/data/widgets/replace_color.xml index 83eb2dbd6..27177e5ba 100644 --- a/data/widgets/replace_color.xml +++ b/data/widgets/replace_color.xml @@ -1,16 +1,17 @@ + - - + + - + + diff --git a/src/app/commands/filters/cmd_convolution_matrix.cpp b/src/app/commands/filters/cmd_convolution_matrix.cpp index 131a55801..4ed919b60 100644 --- a/src/app/commands/filters/cmd_convolution_matrix.cpp +++ b/src/app/commands/filters/cmd_convolution_matrix.cpp @@ -66,19 +66,16 @@ public: } private: - void onReloadStock(Event& ev) - { + void onReloadStock(Event& ev) { m_stock.reloadStock(); fillStockListBox(); } - void setupTiledMode(TiledMode tiledMode) - { + void setupTiledMode(TiledMode tiledMode) override { m_filter.setTiledMode(tiledMode); } - void fillStockListBox() - { + void fillStockListBox() { const char* oldSelected = (m_filter.getMatrix() ? m_filter.getMatrix()->getName(): NULL); // Clean the list diff --git a/src/app/commands/filters/cmd_despeckle.cpp b/src/app/commands/filters/cmd_despeckle.cpp index 8b10f2d33..d32e0570a 100644 --- a/src/app/commands/filters/cmd_despeckle.cpp +++ b/src/app/commands/filters/cmd_despeckle.cpp @@ -72,8 +72,7 @@ private: restartPreview(); } - void setupTiledMode(TiledMode tiledMode) - { + void setupTiledMode(TiledMode tiledMode) override { m_filter.setTiledMode(tiledMode); } diff --git a/src/filters/convolution_matrix_filter.cpp b/src/filters/convolution_matrix_filter.cpp index b5802e9db..29c4a6b00 100644 --- a/src/filters/convolution_matrix_filter.cpp +++ b/src/filters/convolution_matrix_filter.cpp @@ -34,7 +34,6 @@ namespace { div = matrix->getDiv(); matrixData = &matrix->value(0, 0); } - }; struct GetPixelsDelegateRgba : public GetPixelsDelegate { @@ -45,8 +44,7 @@ namespace { r = g = b = a = 0; } - void operator()(RgbTraits::pixel_t color) - { + void operator()(RgbTraits::pixel_t color) { if (*matrixData) { if (rgba_geta(color) == 0) div -= *matrixData; @@ -59,7 +57,6 @@ namespace { } matrixData++; } - }; struct GetPixelsDelegateGrayscale : public GetPixelsDelegate { @@ -70,8 +67,7 @@ namespace { v = a = 0; } - void operator()(GrayscaleTraits::pixel_t color) - { + void operator()(GrayscaleTraits::pixel_t color) { if (*matrixData) { if (graya_geta(color) == 0) div -= *matrixData; @@ -82,7 +78,6 @@ namespace { } matrixData++; } - }; struct GetPixelsDelegateIndexed : public GetPixelsDelegate { @@ -96,8 +91,7 @@ namespace { r = g = b = a = index = 0; } - void operator()(IndexedTraits::pixel_t color) - { + void operator()(IndexedTraits::pixel_t color) { if (*matrixData) { index += color * (*matrixData); color_t rgba = pal->getEntry(color); @@ -112,7 +106,6 @@ namespace { } matrixData++; } - }; }