Replace forever with Q_FOREVER
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user