Develop and Download Open Source Software

Browse CVS Repository

Diff of /malonnote/mnModel.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.16 by maloninc, Mon Sep 12 21:44:33 2005 UTC revision 1.18 by maloninc, Tue Sep 13 04:22:15 2005 UTC
# Line 100  WikiList* mnModel::search(const char* se Line 100  WikiList* mnModel::search(const char* se
100                          for(i = 0; tokenList[i] != NULL; i++){                          for(i = 0; tokenList[i] != NULL; i++){
101                                  toLower(tokenList[i]);                                  toLower(tokenList[i]);
102                                  if(strstr((const char*)buf, (const char*)tokenList[i]) ||                                  if(strstr((const char*)buf, (const char*)tokenList[i]) ||
103                                          strstr((const char*)decodeFileNameBuf, (const char*)tokenList[i])) {                                          strstr((const char*)decodeFileNameBuf, (const char*)tokenList[i]) ||
104                                            strcmp((const char*)tokenList[i], (const char*)ALLMEMO_TAG) == 0) {
105                                          found = TRUE;                                          found = TRUE;
106                                  }                                  }
107                                  else {                                  else {
# Line 133  void mnModel::addSearchStr(wxString* sea Line 134  void mnModel::addSearchStr(wxString* sea
134    
135          if(searchStrList->Index(searchStr->c_str()) == wxNOT_FOUND){          if(searchStrList->Index(searchStr->c_str()) == wxNOT_FOUND){
136                  string = new wxString(searchStr->c_str());                  string = new wxString(searchStr->c_str());
137                  searchStrList->Add(*string, 1);                  //searchStrList->Add(*string, 1);
138                    searchStrList->Insert(*string, 0);
139          }          }
140  }  }
141    

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.18

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26