Commit 5ace9ee3 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

It compiles fine with add_definitions(-DQT_NO_KEYWORDS)

parent 4edd6c3f
Pipeline #49296 failed with stage
in 2 minutes and 49 seconds
......@@ -52,6 +52,7 @@ if (USE_UNITY_CMAKE_SUPPORT)
endif()
########### Targets ###########
add_definitions(-DQT_NO_FOREACH)
add_definitions(-DQT_NO_KEYWORDS)
add_subdirectory(src)
add_subdirectory(includes)
......
......@@ -1542,24 +1542,21 @@ bool Newsgroups::isCrossposted() const {
bool Newsgroups::parse(const char *&scursor, const char *const send, bool isCRLF) {
Q_D(Newsgroups);
clear();
forever {
eatCFWS(scursor, send, isCRLF);
if (scursor != send && *scursor == ',')
{
++scursor;
}
eatCFWS(scursor, send, isCRLF);
if (scursor == send)
{
return true;
}
const char *start = scursor;
while (scursor != send && !isspace(*scursor) && *scursor != ',')
{
++scursor;
}
QByteArray group(start, scursor - start);
d->groups.append(group);
while (true) {
eatCFWS(scursor, send, isCRLF);
if (scursor != send && *scursor == ',') {
++scursor;
}
eatCFWS(scursor, send, isCRLF);
if (scursor == send) {
return true;
}
const char *start = scursor;
while (scursor != send && !isspace(*scursor) && *scursor != ',') {
++scursor;
}
QByteArray group(start, scursor - start);
d->groups.append(group);
}
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment