I don't think the code has anything to do with this. It's a matter of the C++ standard that
QReadLocker(myReadWriteLock);
To copy to clipboard, switch view to plain text mode
is interpreted as
QReadLocker myReadWriteLock;
To copy to clipboard, switch view to plain text mode
in this context.
The same happens here:
#include <stdio.h>
int main(int argc, char **argv) {
int (v) = 0;
printf("%d\n", (((((v))))));
return (0);
}
#include <stdio.h>
int main(int argc, char **argv) {
int (v) = 0;
printf("%d\n", (((((v))))));
return (0);
}
To copy to clipboard, switch view to plain text mode
Bookmarks