Skip to content

Commit

Permalink
Fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
equeim committed Nov 13, 2024
1 parent 8f31c4e commit cb5fbd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/rpc/requestrouter_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ namespace {
QCOMPARE(error.has_value(), true);
if (error.value() == RpcError::TimedOut) {
// This is not what we test here but it can happen on some systems
QWARN("Connection to port 9 timed out instead of being refused");
warning().log("Connection to port 9 timed out instead of being refused");
} else {
QCOMPARE(error.value(), RpcError::ConnectionError);
}
Expand Down Expand Up @@ -467,7 +467,7 @@ namespace {
)
);
if (!ok) {
QWARN("Timed out when waiting for response");
warning().log("Timed out when waiting for response");
}

if (std::holds_alternative<RpcError>(responseOrError)) {
Expand Down Expand Up @@ -508,7 +508,7 @@ namespace {
)
);
if (!ok) {
QWARN("Timed out when waiting for response");
warning().log("Timed out when waiting for response");
}
return responseOrError;
}
Expand Down
2 changes: 1 addition & 1 deletion src/ui/savewindowstatedispatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ namespace tremotesf {

SaveWindowStateHandler::~SaveWindowStateHandler() {
mWindow->removeEventFilter(this);
mWindow->setProperty(windowHasSaveStateHandlerProperty, QVariant::Invalid);
mWindow->setProperty(windowHasSaveStateHandlerProperty, QVariant{});
}

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

0 comments on commit cb5fbd5

Please sign in to comment.