hi do anyone explain me whay this warning?? thanks
Qt Code:
.cpp(355) : warning C4018: '<' : signed/unsigned mismatch for( int i = 0; i < values.size(); ++i ) {To copy to clipboard, switch view to plain text mode
hi do anyone explain me whay this warning?? thanks
Qt Code:
.cpp(355) : warning C4018: '<' : signed/unsigned mismatch for( int i = 0; i < values.size(); ++i ) {To copy to clipboard, switch view to plain text mode
Regards
QStringList::size() returns an unsigned integer value and you are comparing it to a signed integer.
The following won't produce the warning:
Qt Code:
for (uint i = 0; i < values.size(); ++i) { ... }To copy to clipboard, switch view to plain text mode
J-P Nurmi
mickey (20th July 2006)
Bookmarks