ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/gclib/gclib/gff.h
(Generate patch)
# Line 253 | Line 253
253       byName.shkAdd(f->name,f);
254       }
255   public:
256 < GffNameList():GList<GffNameInfo>(false,true,true), byName(false) {
256 > GffNameList(int init_capacity=6):GList<GffNameInfo>(init_capacity, false,true,true), byName(false) {
257      idlast=-1;
258 +    setCapacity(init_capacity);
259      }
260   char* lastNameUsed() { return idlast<0 ? NULL : Get(idlast)->name; }
261   int lastNameId() { return idlast; }
# Line 266 | Line 267
267  
268   int addName(const char* tname) {//returns or create an id for the given name
269     //check idlast first, chances are it's the same feature name checked
270 <   if (idlast>=0 && strcmp(fList[idlast]->name,tname)==0)
271 <       return idlast;
270 >   /*if (idlast>=0 && strcmp(fList[idlast]->name,tname)==0)
271 >       return idlast;*/
272     GffNameInfo* f=byName.Find(tname);
273     int fidx=-1;
274     if (f!=NULL) fidx=f->idx;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines