Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
omichel authored Jan 11, 2024
1 parent 7a9eb85 commit 1a11118
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/webots/nodes/utils/WbSupervisorUtilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -506,10 +506,10 @@ WbNode *WbSupervisorUtilities::getProtoParameterNodeInstance(int nodeId, const Q
WbBaseNode *proto = static_cast<WbBaseNode *>(node)->getFirstFinalizedProtoInstance();
if (!proto) {
if (node->modelName() != node->nodeModelName())
mRobot->warn(
tr("Cannot get the PROTO instance for node '%1' (derived from '%2').").arg(node->usefulName(), node->nodeModelName()));
else
mRobot->warn(tr("Cannot get the PROTO instance for node '%1'.").arg(node->usefulName()));
mRobot->warn(
tr("Cannot get the PROTO instance for node '%1' (derived from '%2').").arg(node->usefulName(), node->nodeModelName()));
else
mRobot->warn(tr("Cannot get the PROTO instance for node '%1'.").arg(node->usefulName()));
}
return proto;
}
Expand Down

0 comments on commit 1a11118

Please sign in to comment.