Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MNikoliCC committed Dec 11, 2024
1 parent 2e8a113 commit c3555eb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/tests_sources_with_latest_cppcheck.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Test Sources with Latest Cppcheck

on:
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
branches-ignore:
- 'released'
schedule:
- cron: '0 22 * * *'

Expand Down
2 changes: 1 addition & 1 deletion src/webots/nodes/WbRobot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ void WbRobot::addDevices(WbNode *node) {
return;

const WbRobot *robotNode = dynamic_cast<const WbRobot *>(node);
if (node != this && robrobotNodeot)
if (node != this && robotNode)
return; // do not recurse through child robots, their devices are hidden

WbGroup *group = dynamic_cast<WbGroup *>(node);
Expand Down
2 changes: 1 addition & 1 deletion src/wren/Node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ namespace wren {

protected:
Node();
explicit Node(Node *source);
explicit Node(const Node *source);
virtual ~Node() {}

virtual void recomputeAabb() const;
Expand Down

0 comments on commit c3555eb

Please sign in to comment.