Fix dev warning. (#980)

This commit is contained in:
Arthur Sonzogni 2024-12-29 10:24:17 +01:00 committed by GitHub
parent 6fafa2dfed
commit f6a690a942
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 5 deletions

View File

@ -31,13 +31,13 @@ class Selection {
private:
Selection(int start_x, int start_y, int end_x, int end_y, Selection* parent);
Selection* const parent_ = this;
const bool empty_ = true;
const int start_x_ = 0;
const int start_y_ = 0;
const int end_x_ = 0;
const int end_y_ = 0;
const Box box_ = {};
Selection* const parent_ = this;
const bool empty_ = true;
std::stringstream parts_;
// The position of the last inserted part.

View File

@ -15,7 +15,7 @@ class Unselectable : public NodeDecorator {
public:
using NodeDecorator::NodeDecorator;
void Select(Selection& selection) override {
void Select(Selection&) override {
// Overwrite the select method to do nothing.
}
};

View File

@ -20,7 +20,7 @@ class SelectionStyleReset : public NodeDecorator {
void Render(Screen& screen) final {
auto old_style = screen.GetSelectionStyle();
screen.SetSelectionStyle([](Pixel& pixel) {});
screen.SetSelectionStyle([](Pixel&) {});
NodeDecorator::Render(screen);
screen.SetSelectionStyle(old_style);
}

View File

@ -88,7 +88,6 @@ class Text : public Node {
bool has_selection = false;
int selection_start_ = 0;
int selection_end_ = -1;
std::function<void(Pixel& pixel)> selectionTransform;
};
class VText : public Node {