Skip to content

Commit c3555eb

Browse files
committed
Fix
1 parent 2e8a113 commit c3555eb

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/tests_sources_with_latest_cppcheck.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Test Sources with Latest Cppcheck
22

33
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, labeled, unlabeled]
6+
branches-ignore:
7+
- 'released'
48
schedule:
59
- cron: '0 22 * * *'
610

src/webots/nodes/WbRobot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ void WbRobot::addDevices(WbNode *node) {
271271
return;
272272

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

277277
WbGroup *group = dynamic_cast<WbGroup *>(node);

src/wren/Node.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ namespace wren {
5555

5656
protected:
5757
Node();
58-
explicit Node(Node *source);
58+
explicit Node(const Node *source);
5959
virtual ~Node() {}
6060

6161
virtual void recomputeAabb() const;

0 commit comments

Comments
 (0)