We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
back-link: ch02/index.html#console-application
forever { // test for empty string 'QString("")' if(line.isEmpty()) { continue; } // test for null string 'String()' if(line.isNull()) { break; } }
should in reality be
forever { // test for null string 'QString()' if(line.isNull()) { break; } // test for empty string 'QString("")' if(line.isEmpty()) { continue; } }
since isEmpty returns true even when the string is null. Your version would lead to an infinite loop. Further it should be QString() and not String().
The text was updated successfully, but these errors were encountered:
No branches or pull requests
back-link: ch02/index.html#console-application
should in reality be
since isEmpty returns true even when the string is null. Your version would lead to an infinite loop. Further it should be QString() and not String().
The text was updated successfully, but these errors were encountered: