Skip to content

Commit cb5fbd5

Browse files
committed
Fix deprecation warnings
1 parent 8f31c4e commit cb5fbd5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/rpc/requestrouter_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ namespace {
208208
QCOMPARE(error.has_value(), true);
209209
if (error.value() == RpcError::TimedOut) {
210210
// This is not what we test here but it can happen on some systems
211-
QWARN("Connection to port 9 timed out instead of being refused");
211+
warning().log("Connection to port 9 timed out instead of being refused");
212212
} else {
213213
QCOMPARE(error.value(), RpcError::ConnectionError);
214214
}
@@ -467,7 +467,7 @@ namespace {
467467
)
468468
);
469469
if (!ok) {
470-
QWARN("Timed out when waiting for response");
470+
warning().log("Timed out when waiting for response");
471471
}
472472

473473
if (std::holds_alternative<RpcError>(responseOrError)) {
@@ -508,7 +508,7 @@ namespace {
508508
)
509509
);
510510
if (!ok) {
511-
QWARN("Timed out when waiting for response");
511+
warning().log("Timed out when waiting for response");
512512
}
513513
return responseOrError;
514514
}

src/ui/savewindowstatedispatcher.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ namespace tremotesf {
7373

7474
SaveWindowStateHandler::~SaveWindowStateHandler() {
7575
mWindow->removeEventFilter(this);
76-
mWindow->setProperty(windowHasSaveStateHandlerProperty, QVariant::Invalid);
76+
mWindow->setProperty(windowHasSaveStateHandlerProperty, QVariant{});
7777
}
7878

7979
bool SaveWindowStateHandler::eventFilter(QObject* watched, QEvent* event) {

0 commit comments

Comments
 (0)