Skip to content

Commit 1cdcc95

Browse files
committed
Fix windows test
1 parent d5f03b2 commit 1cdcc95

26 files changed

+41
-36
lines changed

resources/projects/libraries/qt_utils/motion_editor/Pose.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Pose::Pose(const Pose &other) : mName(other.mName), mTime(other.mTime), mIsValid
1717
int size = other.mStates.size();
1818
mStates.reserve(size);
1919
foreach (const MotorTargetState *item, other.mStates) {
20-
MotorTargetState *const state = new MotorTargetState(*item);
20+
const MotorTargetState *state = new MotorTargetState(*item);
2121
mStates.append(state);
2222
connect(state, SIGNAL(updated()), this, SLOT(propagateStateUpdate()));
2323
connect(state, SIGNAL(validChanged()), this, SLOT(updateIsValid()));

src/webots/app/WbApplication.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ WbApplication::~WbApplication() {
122122
}
123123

124124
void WbApplication::setup() {
125-
WbNodeOperations *const nodeOperations = WbNodeOperations::instance();
125+
const WbNodeOperations *nodeOperations = WbNodeOperations::instance();
126126

127127
// create and connect WbAnimationRecorder
128128
WbAnimationRecorder *recorder = WbAnimationRecorder::instance();

src/webots/control/WbControlledWorld.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ void WbControlledWorld::retryStepLater() {
145145
emit stepBlocked(true);
146146
}
147147
// call the step() function again when a WbController received some data from the libController
148-
foreach (WbController *const controller, mControllers)
148+
foreach (const WbController *const controller, mControllers)
149149
connect(controller, &WbController::requestReceived, this, &WbControlledWorld::step, Qt::UniqueConnection);
150150
}
151151

src/webots/core/WbGuiRefreshOracle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void WbGuiRefreshOracle::cleanup() {
3535
WbGuiRefreshOracle::WbGuiRefreshOracle() : mCanRefreshNow(true) {
3636
qAddPostRoutine(WbGuiRefreshOracle::cleanup);
3737

38-
WbSimulationState *state = WbSimulationState::instance();
38+
const WbSimulationState *state = WbSimulationState::instance();
3939
connect(state, &WbSimulationState::modeChanged, this, &WbGuiRefreshOracle::updateFlags);
4040
connect(state, &WbSimulationState::controllerReadRequestsCompleted, this, &WbGuiRefreshOracle::updateFlags);
4141
connect(&mGlobalRefreshTimer, &QTimer::timeout, this, &WbGuiRefreshOracle::updateFlags);

src/webots/core/WbTelemetry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void WbTelemetry::sendRequest(const QString &operation) {
7171
data.append("&build=");
7272
data.append(QString::number(UNIX_TIMESTAMP).toUtf8());
7373
request.setHeader(QNetworkRequest::ContentTypeHeader, "application/x-www-form-urlencoded");
74-
QNetworkReply *const reply = WbNetwork::instance()->networkAccessManager()->post(request, data);
74+
const QNetworkReply *reply = WbNetwork::instance()->networkAccessManager()->post(request, data);
7575
if (id == 0) {
7676
QEventLoop loop;
7777
QTimer timer;

src/webots/core/WbWebotsUpdateManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void WbWebotsUpdateManager::cleanup() {
5050
void WbWebotsUpdateManager::sendRequest() {
5151
QNetworkRequest request;
5252
request.setUrl(QUrl("https://api.github.com/repos/cyberbotics/webots/releases/latest"));
53-
QNetworkReply *const reply = WbNetwork::instance()->networkAccessManager()->get(request);
53+
const QNetworkReply *reply = WbNetwork::instance()->networkAccessManager()->get(request);
5454
connect(reply, &QNetworkReply::finished, this, &WbWebotsUpdateManager::downloadReplyFinished, Qt::UniqueConnection);
5555
}
5656

src/webots/engine/WbAnimationRecorder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ void WbAnimationRecorder::populateCommands() {
272272
}
273273
}
274274

275-
foreach (WbAnimationCommand *command, mCommands) {
275+
foreach (const WbAnimationCommand *command, mCommands) {
276276
connect(command, &WbAnimationCommand::changed, this, &WbAnimationRecorder::addChangedCommandToList);
277277
// support node deletions
278278
connect(command->node(), &WbNode::destroyed, this, &WbAnimationRecorder::updateCommandsAfterNodeDeletion);

src/webots/gui/WbGuidedTour.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ WbGuidedTour::WbGuidedTour(QWidget *parent) :
9797
mNextButton = new QPushButton(tr("Next"), this);
9898
mNextButton->setDefault(true);
9999
mNextButton->setAutoDefault(true);
100-
QPushButton *closeButton = new QPushButton(tr("Close"), this);
100+
const QPushButton *closeButton = new QPushButton(tr("Close"), this);
101101

102102
connect(closeButton, &QPushButton::pressed, this, &WbGuidedTour::close);
103103
connect(mPrevButton, &QPushButton::pressed, this, &WbGuidedTour::prev);

src/webots/gui/WbMainWindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ WbMainWindow::WbMainWindow(bool minimizedOnStart, WbTcpServer *tcpServer, QWidge
196196
connect(mAnimationRecordingTimer, &QTimer::timeout, this, &WbMainWindow::toggleAnimationIcon);
197197
toggleAnimationAction(false);
198198

199-
WbAnimationRecorder *recorder = WbAnimationRecorder::instance();
199+
const WbAnimationRecorder *recorder = WbAnimationRecorder::instance();
200200
connect(recorder, &WbAnimationRecorder::initalizedFromStreamingServer, this, &WbMainWindow::disableAnimationAction);
201201
connect(recorder, &WbAnimationRecorder::cleanedUpFromStreamingServer, this, &WbMainWindow::enableAnimationAction);
202202
connect(recorder, &WbAnimationRecorder::requestOpenUrl, this,

src/webots/gui/WbNewProjectWizard.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ QWizardPage *WbNewProjectWizard::createDirectoryPage() {
124124
page->setTitle(tr("Directory selection"));
125125
page->setSubTitle(tr("Please choose a directory for your new project:"));
126126
mDirEdit = new WbLineEdit(page);
127-
QPushButton *const chooseButton = new QPushButton(tr("Choose"), page);
127+
const QPushButton *chooseButton = new QPushButton(tr("Choose"), page);
128128
connect(chooseButton, &QPushButton::pressed, this, &WbNewProjectWizard::chooseDirectory);
129129
QHBoxLayout *layout = new QHBoxLayout(page);
130130
layout->addWidget(mDirEdit);

0 commit comments

Comments
 (0)