Changeset 3572 in Sophya for trunk/SophyaLib/SUtils/datacards.cc
- Timestamp:
- Feb 7, 2009, 10:50:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SUtils/datacards.cc
r2615 r3572 1 1 // 2 // $Id: datacards.cc,v 1.1 0 2004-09-10 09:54:48cmv Exp $2 // $Id: datacards.cc,v 1.11 2009-02-07 21:49:59 cmv Exp $ 3 3 // 4 4 // … … 217 217 DataCards::GetKey(int num) const 218 218 { 219 if ((num < 0) || (num >= cards.size()) ) return("");219 if ((num < 0) || (num >= (int)cards.size()) ) return(""); 220 220 int k = 0; 221 221 CardList::const_iterator i; … … 234 234 DataCards::CardList::const_iterator it = FindKeyC(key); 235 235 if (it == cards.end()) return(rs); 236 for ( int k=0; k<(*it).tokens.size(); k++) {236 for (size_t k=0; k<(*it).tokens.size(); k++) { 237 237 rs += ' '; rs += (*it).tokens[k]; 238 238 } … … 246 246 DataCards::CardList::const_iterator it = FindKeyC(key); 247 247 if (it == cards.end()) return(def); 248 if ( (numero < 0) || (numero >= ( *it).tokens.size()) ) return def;248 if ( (numero < 0) || (numero >= (int)((*it).tokens.size())) ) return def; 249 249 return (*it).tokens[numero]; 250 250 } … … 308 308 DataCards::ApplyPF(CrdPF & cpf, string const& key, string const& toks) 309 309 { 310 int l,lk;310 size_t l,lk; 311 311 int rc = 0; 312 312 // On verifie si le "pattern" correspond
Note:
See TracChangeset
for help on using the changeset viewer.