1
0
mirror of https://invent.kde.org/network/krfb synced 2024-07-05 09:28:35 +00:00

Fix gcc 2.95->3.2 related bug. With gcc 2.95 it worked correctly, but

when compiled with gcc 3.2 the first save() invocation had a 1 instead
of a 0 as second argument...

        int i = 0;
-       while (i < num)
-               invitationList[i++].save(&c, i);
+       while (i < num) {
+               invitationList[i].save(&c, i);
+               i++;
+       }

svn path=/trunk/kdenetwork/krfb/; revision=184220
This commit is contained in:
Tim Jansen 2002-10-16 20:03:20 +00:00
parent 38c9a38b9c
commit 81ef0ef2be

View File

@ -226,8 +226,10 @@ void Configuration::saveToKConfig() {
int num = invitationList.count();
c.writeEntry("invitation_num", num);
int i = 0;
while (i < num)
invitationList[i++].save(&c, i);
while (i < num) {
invitationList[i].save(&c, i);
i++;
}
}