From 5882316f4ccd20a768ae296e1d7efcdfed45d0a3 Mon Sep 17 00:00:00 2001 From: ctrlaltca Date: Mon, 16 Jun 2025 22:22:29 +0200 Subject: KviControlCodes: fix compilation with Qt >= 6.9 (#2705) * KviControlCodes: Qt >= 6.9's QChar removed implicit casts from ctors, add explicit cast to accommodate * Update github action jobs--- src/modules/regchan/libkviregchan.cpp | 2 +- src/modules/spaste/SlowPasteController.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/regchan/libkviregchan.cpp b/src/modules/regchan/libkviregchan.cpp index cefc0b9da..1bd27b48c 100644 --- a/src/modules/regchan/libkviregchan.cpp +++ b/src/modules/regchan/libkviregchan.cpp @@ -223,7 +223,7 @@ static bool regchan_kvs_cmd_showlist(KviKvsModuleCommandCall * c) c->window()->outputNoFmt( KVI_OUT_SYSTEMMESSAGE, __tr2qs_ctx("Channel: %1%2@%3", "register") - .arg(QChar(KviControlCodes::Bold)) + .arg(QChar((char)KviControlCodes::Bold)) .arg(ch->name()) .arg(ch->netMask())); diff --git a/src/modules/spaste/SlowPasteController.cpp b/src/modules/spaste/SlowPasteController.cpp index f60e84396..60c66dae2 100644 --- a/src/modules/spaste/SlowPasteController.cpp +++ b/src/modules/spaste/SlowPasteController.cpp @@ -111,7 +111,7 @@ void SlowPasteController::pasteFile() { line = data; if(line.isEmpty()) - line = QChar(KviControlCodes::Reset); + line = QChar((char)KviControlCodes::Reset); line.replace('\t', QString(KVI_OPTION_UINT(KviOption_uintSpacesToExpandTabulationInput), ' ')); //expand tabs to spaces -- cgit v1.3.1-10-gc9f91