[sword-cvs] sword/src/keys listkey.cpp,1.19,1.20
sword at www.crosswire.org
sword at www.crosswire.org
Sat May 8 14:04:44 MST 2004
- Previous message: [sword-cvs] sword/src/mgr swlocale.cpp,1.11,1.12
- Next message: [sword-cvs] sword/include listkey.h, 1.19, 1.20 swkey.h, 1.26,
1.27 treekey.h, 1.4, 1.5 treekeyidx.h, 1.5, 1.6 versekey.h,
1.32, 1.33 versekey2.h, 1.6, 1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvs/core/sword/src/keys
In directory www:/tmp/cvs-serv25446/src/keys
Modified Files:
listkey.cpp
Log Message:
Fixed ListKey contains function and normalized Traversable method name
Index: listkey.cpp
===================================================================
RCS file: /cvs/core/sword/src/keys/listkey.cpp,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- listkey.cpp 31 Aug 2003 01:58:14 -0000 1.19
+++ listkey.cpp 8 May 2004 21:04:42 -0000 1.20
@@ -296,9 +296,15 @@
for (arraypos = 0; arraypos < arraycnt; arraypos++) {
SWKey *key = array[arraypos];
if (key) {
- key->setText(ikey);
- if (!key->Error())
- break;
+ if (key->isTraversable()) {
+ key->setText(ikey);
+ if (!key->Error())
+ break;
+ }
+ else {
+ if (!strcmp(key->getText(), ikey))
+ break;
+ }
}
}
if (arraypos >= arraycnt) {
- Previous message: [sword-cvs] sword/src/mgr swlocale.cpp,1.11,1.12
- Next message: [sword-cvs] sword/include listkey.h, 1.19, 1.20 swkey.h, 1.26,
1.27 treekey.h, 1.4, 1.5 treekeyidx.h, 1.5, 1.6 versekey.h,
1.32, 1.33 versekey2.h, 1.6, 1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the sword-cvs
mailing list