File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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) {
You can’t perform that action at this time.
0 commit comments