Changeset 2323
- Timestamp:
- 11/26/07 04:48:11 (14 months ago)
- Files:
-
- 2 modified
-
tags/deluge-0.5.6.96/src/deluge_core.cpp (modified) (1 diff)
-
trunk/src/deluge_core.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tags/deluge-0.5.6.96/src/deluge_core.cpp
r2322 r2323 182 182 long get_index_from_unique_ID(long unique_ID) 183 183 { 184 184 try{ 185 185 for (unsigned long i = 0; i < M_torrents->size(); i++) 186 186 if ((*M_torrents)[i].unique_ID == unique_ID) 187 187 return i; 188 188 } 189 catch(invalid_handle&) 190 { 191 printf("invalid handle error on get_index_from_unique_ID. call batman.\n"); 192 } 193 catch(...) 194 { 195 printf("unknown error on get_index_from_unique_ID. call batman.\n"); 196 } 189 197 RAISE_INT(DelugeError, "No such unique_ID."); 190 198 } -
trunk/src/deluge_core.cpp
r2322 r2323 182 182 long get_index_from_unique_ID(long unique_ID) 183 183 { 184 184 try{ 185 185 for (unsigned long i = 0; i < M_torrents->size(); i++) 186 186 if ((*M_torrents)[i].unique_ID == unique_ID) 187 187 return i; 188 188 } 189 catch(invalid_handle&) 190 { 191 printf("invalid handle error on get_index_from_unique_ID. call batman.\n"); 192 } 193 catch(...) 194 { 195 printf("unknown error on get_index_from_unique_ID. call batman.\n"); 196 } 189 197 RAISE_INT(DelugeError, "No such unique_ID."); 190 198 }
