Skip to content

Commit cc87fa6

Browse files
committed
fix lint
1 parent 96ff0cd commit cc87fa6

File tree

14 files changed

+17
-1
lines changed

14 files changed

+17
-1
lines changed

src/ruis/animation/animation.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace ruis {
3232
// ruis::updateable virtually iherits from utki::shared which inherits
3333
// from std::shared_from_this, but ruis::animation also publicly and virtually inherits utki::shared,
3434
// so std::shared_from_this inheritance is effectively public.
35-
// NOLINTNEXTLINE(bugprone-incorrect-enable-shared-from-this)
35+
// NOLINTNEXTLINE(bugprone-incorrect-enable-shared-from-this, "std::shared_from_this is public via utki::shared")
3636
class animation :
3737
virtual public utki::shared, //
3838
private updateable

src/ruis/util/timer.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ namespace ruis {
3131
* The class is not thread safe and is supposed to be only used from
3232
* within the UI-thread. Timer callback is invoked from UI-thread.
3333
*/
34+
// NOLINTNEXTLINE(bugprone-incorrect-enable-shared-from-this, "std::shared_from_this is public via utki::shared")
3435
class timer :
3536
virtual public utki::shared, //
3637
private updateable

src/ruis/widget/base/frame_widget.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2525

2626
namespace ruis {
2727

28+
// NOLINTNEXTLINE(bugprone-incorrect-enable-shared-from-this, "std::shared_from_this is public via ruis::widget")
2829
class frame_widget :
2930
public virtual widget, //
3031
protected container

src/ruis/widget/button/impl/check_box.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ namespace ruis {
3333
* In GUI script can be instantiated as 'Checkbox'. Only available after initializing
3434
* standard ruis widgets.
3535
*/
36+
// NOLINTNEXTLINE(bugprone-incorrect-enable-shared-from-this, "std::shared_from_this is public via toggle_button")
3637
class check_box :
3738
virtual public toggle_button, //
3839
private nine_patch

src/ruis/widget/button/impl/drop_down_box.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2727

2828
namespace ruis {
2929

30+
// NOLINTNEXTLINE(bugprone-incorrect-enable-shared-from-this, "std::shared_from_this is public via widget")
3031
class drop_down_box :
3132
virtual public widget, //
3233
private nine_patch_push_button,

src/ruis/widget/button/impl/radio_button.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ namespace ruis {
3232
* an empty round when unchecked. In GUI script it can be instantiated as
3333
* "radio_button". Only available after initializing standard ruis widgets.
3434
*/
35+
// NOLINTNEXTLINE(bugprone-incorrect-enable-shared-from-this, "std::shared_from_this is public via choice_button")
3536
class radio_button :
3637
virtual public choice_button, //
3738
private container

src/ruis/widget/group/book.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2525

2626
namespace ruis {
2727

28+
// NOLINTNEXTLINE(bugprone-incorrect-enable-shared-from-this, "std::shared_from_this is public via widget")
2829
class book;
2930

3031
class page : public virtual widget
@@ -68,6 +69,7 @@ class page : public virtual widget
6869
utki::shared_ref<page> tear_out();
6970
};
7071

72+
// NOLINTNEXTLINE(bugprone-incorrect-enable-shared-from-this, "std::shared_from_this is public via widget")
7173
class book :
7274
public virtual widget, //
7375
private container

src/ruis/widget/group/collapse_area.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2727
namespace ruis {
2828

2929
// TODO: derive from frame_widget?
30+
// NOLINTNEXTLINE(bugprone-incorrect-enable-shared-from-this, "std::shared_from_this is public via widget")
3031
class collapse_area :
3132
virtual public widget, //
3233
private container

src/ruis/widget/group/tabbed_book.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
3030

3131
namespace ruis {
3232

33+
// NOLINTNEXTLINE(bugprone-incorrect-enable-shared-from-this, "std::shared_from_this is public via widget")
3334
class tabbed_book :
3435
virtual public ruis::widget, //
3536
private ruis::container

src/ruis/widget/group/tree_view.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
3232

3333
namespace ruis {
3434

35+
// NOLINTNEXTLINE(bugprone-incorrect-enable-shared-from-this, "std::shared_from_this is public via widget")
3536
class tree_view :
3637
virtual public widget, //
3738
private scroll_area
@@ -56,6 +57,7 @@ class tree_view :
5657

5758
~tree_view() override = default;
5859

60+
// NOLINTNEXTLINE(bugprone-incorrect-enable-shared-from-this, "std::shared_from_this is public via utki::shared")
5961
class provider :
6062
public virtual utki::shared, //
6163
private list::provider

0 commit comments

Comments
 (0)