Skip to content

Commit

Permalink
Make Widget::update() virtual.
Browse files Browse the repository at this point in the history
  • Loading branch information
ASxa86 committed Jun 5, 2024
1 parent a6c74ee commit 1b70105
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ Checks: '-*,
cppcoreguidelines-*,
modernize-*,
readability-*,
-readability-identifier-length
-readability-identifier-length,
-readability-simplify-boolean-expr
'
WarningsAsErrors: '*'
HeaderFilterRegex: '.*'
Expand Down
2 changes: 1 addition & 1 deletion include/aspire/widget/Widget.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace aspire::widget
/// node.
/// @param x The scene node that corresponds to this widget. Nullptr if it doesn't exist.
/// @return The root node to represent this widget in the scene.
auto update(aspire::scene::Node* x) -> std::unique_ptr<aspire::scene::Node>;
virtual auto update(aspire::scene::Node* x) -> std::unique_ptr<aspire::scene::Node>;

private:
struct Impl;
Expand Down

0 comments on commit 1b70105

Please sign in to comment.