Skip to content

Commit d4a3db2

Browse files
committed
fix lint
1 parent 3c3e4d5 commit d4a3db2

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ruis - GUI framework
22

3-
Copyright (C) 2012-2024 Ivan Gagis <[email protected]>
3+
Copyright (C) 2012-2025 Ivan Gagis <[email protected]>
44

55
This program is free software: you can redistribute it and/or modify
66
it under the terms of the GNU General Public License as published by

src/ruis/animation/animation.hpp

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

2828
namespace ruis {
2929

30+
// Lint complains that std::shared_from_this is privately inherited via ruis::updateable
31+
// and trying to use it will result in undefined behaviour. This is false, because
32+
// ruis::updateable virtually iherits from utki::shared which inherits
33+
// from std::shared_from_this, but ruis::animation also publicly and virtually inherits utki::shared,
34+
// so std::shared_from_this inheritance is effectively public.
35+
// NOLINTNEXTLINE(bugprone-incorrect-enable-shared-from-this)
3036
class animation :
3137
virtual public utki::shared, //
3238
private updateable

0 commit comments

Comments
 (0)