diff options
| author | Joel Klinghed <the_jk@yahoo.com> | 2017-07-29 01:48:01 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@yahoo.com> | 2017-07-29 01:48:01 +0200 |
| commit | 8d58ffb022649fd8a28d2f74845fc8ca5c934029 (patch) | |
| tree | 3ce6d5037e95192401a9490c9d13253101017764 /src/gui_plainattrtext.cc | |
| parent | c974e4b5df40aec646a60c747f453d11a8e7587c (diff) | |
Remove attribute(__unused__) usage
Just omitting the parameter name is more portable and less to write
Diffstat (limited to 'src/gui_plainattrtext.cc')
| -rw-r--r-- | src/gui_plainattrtext.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gui_plainattrtext.cc b/src/gui_plainattrtext.cc index a588172..1b90f4b 100644 --- a/src/gui_plainattrtext.cc +++ b/src/gui_plainattrtext.cc @@ -8,7 +8,7 @@ namespace { class PlainAttributedTextImpl : public PlainAttributedText { public: - void append(const char* str, size_t len, Attribute const& UNUSED(attr), + void append(const char* str, size_t len, Attribute const&, size_t start, size_t length) override { if (!str || start >= len) return; length = std::min(len - start, length); @@ -16,13 +16,11 @@ public: text_.append(str + start, length); } - void add(Attribute const& UNUSED(attr), size_t UNUSED(start), - size_t UNUSED(length)) override { + void add(Attribute const&, size_t, size_t) override { } - void set(Attribute const& UNUSED(attr), size_t UNUSED(start), - size_t UNUSED(length)) override { + void set(Attribute const&, size_t, size_t) override { } - void clear(size_t UNUSED(start), size_t UNUSED(length)) override { + void clear(size_t, size_t) override { } std::string text() const override { |
