Replace forever with Q_FOREVER

This commit is contained in:
Jonas Kvinge
2024-08-25 06:24:02 +02:00
parent 4ea57d1181
commit 80bea31b98
10 changed files with 13 additions and 13 deletions

View File

@@ -206,7 +206,7 @@ bool CommandlineOptions::Parse() {
// Parse the arguments
bool ok = false;
forever {
Q_FOREVER {
#ifdef Q_OS_WIN32
int c = getopt_long(argc_, argv_, L"hptusqrfv:c:alk:i:oyg:w:", kOptions, nullptr);
#else

View File

@@ -131,7 +131,7 @@ void LocalRedirectServer::WriteTemplate() const {
static const QRegularExpression tr_regexp(QStringLiteral("tr\\(\"([^\"]+)\"\\)"));
qint64 offset = 0;
forever {
Q_FOREVER {
QRegularExpressionMatch re_match = tr_regexp.match(page_data, offset);
if (!re_match.hasMatch()) break;
offset = re_match.capturedStart();

View File

@@ -53,7 +53,7 @@ void StyleSheetLoader::SetStyleSheet(QWidget *widget, const QString &filename) {
}
QTextStream stream(&file);
QString stylesheet;
forever {
Q_FOREVER {
QString line = stream.readLine();
stylesheet.append(line);
if (stream.atEnd()) break;