Changeset 8322
- Timestamp:
- 23/12/11 12:56:18 (5 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
RNACMA/AlignedSequenceLoader.cxx (modified) (2 diffs)
-
WINDOW/aw_device.hxx (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/RNACMA/AlignedSequenceLoader.cxx
r7898 r8322 52 52 string sequence = GB_read_string(gb_data); 53 53 54 string seq_as_vec[MSA_len];55 int k= 0;54 string *seq_as_vec = new string[MSA_len]; 55 int k = 0; 56 56 for (string::iterator i = sequence.begin(); i != sequence.end(); ++i) { 57 57 switch (*i) { … … 87 87 assert((size_t)k == MSA_len); 88 88 vector<string> seq_vector(&seq_as_vec[0], &seq_as_vec[k]); 89 delete [] seq_as_vec; 89 90 90 91 seqs->push_back(seq_vector); -
trunk/WINDOW/aw_device.hxx
r7931 r8322 551 551 // @@@ rename to 'polygone' and pass 'filled' parameter 552 552 bool filled_area(int gc, int npoints, const AW_pos *points, AW_bitset filteri = AW_ALL_DEVICES_SCALED) { 553 AW::Position pos[npoints];553 AW::Position *pos = new AW::Position[npoints]; 554 554 for (int n = 0; n<npoints; ++n) { 555 555 pos[n].setx(points[n*2]); 556 556 pos[n].sety(points[n*2+1]); 557 557 } 558 return filled_area_impl(gc, npoints, pos, filteri); 558 bool result = filled_area_impl(gc, npoints, pos, filteri); 559 delete [] pos; 560 return result; 559 561 } 560 562 bool filled_area(int gc, int npos, const AW::Position *pos, AW_bitset filteri = AW_ALL_DEVICES_SCALED) {
