[Igarden-commit] Garden/source/Database View.cp,1.6,1.6.2.1
Status: Beta
Brought to you by:
jlbedell
|
From: Jeffrey B. <jlb...@us...> - 2006-12-26 01:38:39
|
Update of /cvsroot/igarden/Garden/source/Database In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv20466 Modified Files: Tag: Release_branch_v1 View.cp Log Message: Fix problem looking up the wrong key in the cache Index: View.cp =================================================================== RCS file: /cvsroot/igarden/Garden/source/Database/View.cp,v retrieving revision 1.6 retrieving revision 1.6.2.1 diff -C2 -d -r1.6 -r1.6.2.1 *** View.cp 1 Jul 2006 23:10:31 -0000 1.6 --- View.cp 26 Dec 2006 01:38:37 -0000 1.6.2.1 *************** *** 226,238 **** long View::GetRowForString(propertyID_t propID, const char *str) { ! long result = -1, n, count; count = _stringKeys.Length(); for(n = 0; n < count; n++) { ! if(_stringKeys[n]._propID == propID) { ! std::map<const char*, int, ltstr>::iterator cur = _stringKeys[n]._strMap.find(str); ! if(cur != _stringKeys[n]._strMap.end()) result = (*cur).second; break; --- 226,240 ---- long View::GetRowForString(propertyID_t propID, const char *str) { ! long result = -1, n, count; ! stringKey_t *keyDataPtr; count = _stringKeys.Length(); for(n = 0; n < count; n++) { ! keyDataPtr = &(_stringKeys[n]); ! if(keyDataPtr->_propID == propID) { ! std::map<const char*, int, ltstr>::iterator cur = keyDataPtr->_strMap.find(str); ! if(cur != keyDataPtr->_strMap.end()) result = (*cur).second; break; |