Update of /cvsroot/wpdev/wolfpack
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10240
Modified Files:
content.h inlines.h
Log Message:
Fixed some warnings
Index: content.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/content.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** content.h 2 Nov 2004 20:45:46 -0000 1.1
--- content.h 3 Nov 2004 03:34:15 -0000 1.2
***************
*** 127,131 ****
size_t count = this->count(); // If there is no content, this will always be zero
! for (int i = 2; i < count + 2; ++i) {
if (content[i] == item) {
result = true;
--- 127,132 ----
size_t count = this->count(); // If there is no content, this will always be zero
! for( unsigned int i = 2; i < count + 2; ++i )
! {
if (content[i] == item) {
result = true;
***************
*** 145,149 ****
// Iterate trough all items.
! for (int i = 2; i < 2 + count; ++i) {
if (content[i] != item) {
continue; // Skip this item
--- 146,151 ----
// Iterate trough all items.
! for( unsigned int i = 2; i < 2 + count; ++i )
! {
if (content[i] != item) {
continue; // Skip this item
***************
*** 153,157 ****
// What we do now is seek ahead and write all following items in the array
// one index downwards
! for (int j = i + 1; j < 2 + count; ++j) {
content[j - 1] = content[j]; // Swap Values
}
--- 155,160 ----
// What we do now is seek ahead and write all following items in the array
// one index downwards
! for( unsigned int j = i + 1; j < 2 + count; ++j )
! {
content[j - 1] = content[j]; // Swap Values
}
Index: inlines.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/inlines.h,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** inlines.h 3 Nov 2004 03:31:49 -0000 1.34
--- inlines.h 3 Nov 2004 03:34:15 -0000 1.35
***************
*** 94,98 ****
QString result;
! for (int i = 0; i < input.length(); ++i) {
QChar c = input.at(i);
--- 94,99 ----
QString result;
! for( unsigned int i = 0; i < input.length(); ++i )
! {
QChar c = input.at(i);
|