- Timestamp:
- Nov 26, 2005, 8:36:36 PM (19 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/render2D/element_2d.cc
r5778 r5783 577 577 NullElement2D::getInstance()->addChild2D(*child); 578 578 579 this->children. erase(this->children.begin(), this->children.end());579 this->children.clear(); 580 580 581 581 if (this->parent != NULL) -
trunk/src/lib/lang/class_list.cc
r5780 r5783 49 49 ClassList::~ClassList () 50 50 { 51 // ClassList::classList. erase(ClassList::classList.begin(), ClassList::classList.end());51 // ClassList::classList.clear()); 52 52 --ClassList::classCount; 53 53 } … … 124 124 { 125 125 if (ClassList::classList.size() != ClassList::classCount) 126 ClassList::classList. erase(ClassList::classList.begin(), ClassList::classList.end());126 ClassList::classList.clear(); 127 127 128 128 if(likely(ClassList::first != NULL)) -
trunk/src/lib/shell/shell.cc
r5781 r5783 373 373 374 374 /** 375 * moves the Display buffer (up or down)375 * moves the Display buffer (up + or down - ) 376 376 * @param lineCount the count by which to shift the InputBuffer. 377 * 378 * @todo make this work 377 379 */ 378 380 void Shell::moveDisplayBuffer(int lineCount) 379 381 { 380 /// FIXME 381 // if (!this->bufferIterator->compareListPointer(ShellBuffer::getInstance()->getBuffer())) 382 // { 383 // delete this->bufferIterator; 384 // this->bufferIterator = ShellBuffer::getInstance()->getBuffer()->getIterator(); 385 // } 386 // 387 // if (this->bufferOffset == 0) 388 // { 389 // this->bufferIterator->lastElement(); 390 // // for (unsigned int i = 0; i < this->bufferDisplaySize; i++) 391 // // this->bufferIterator->prevStep(); 392 // } 393 // 394 // // boundraries 395 // if (this->bufferOffset + lineCount > (int)ShellBuffer::getInstance()->getBuffer()->getSize()) 396 // lineCount = (int)ShellBuffer::getInstance()->getBuffer()->getSize()- this->bufferOffset; 397 // else if (this->bufferOffset + lineCount < 0) 398 // lineCount = -bufferOffset; 399 // this->bufferOffset += lineCount; 400 // 401 // // moving the iterator to the right position 402 // int move = 0; 403 // while (move != lineCount) 404 // { 405 // if (move < lineCount) 406 // { 407 // ++move; 382 if (this->bufferOffset == 0) 383 { 384 this->bufferIterator = ShellBuffer::getInstance()->getBuffer()->end(); 385 // for (unsigned int i = 0; i < this->bufferDisplaySize; i++) 408 386 // this->bufferIterator->prevStep(); 409 // } 410 // else 411 // { 412 // --move; 413 // this->bufferIterator->nextStep(); 414 // } 415 // } 416 // // redisplay the buffers 417 // tIterator<char> it = *this->bufferIterator; 418 // for (unsigned int i = 0; i < this->bufferDisplaySize; i++) 419 // { 420 // this->bufferText[i]->setText(it.getCurrent(), false); 421 // it.prevStep(); 422 // } 387 } 388 389 // boundraries 390 if (this->bufferOffset + lineCount > (int)ShellBuffer::getInstance()->getBuffer()->size()) 391 lineCount = (int)ShellBuffer::getInstance()->getBuffer()->size()- this->bufferOffset; 392 else if (this->bufferOffset + lineCount < 0) 393 lineCount = -bufferOffset; 394 this->bufferOffset += lineCount; 395 396 // moving the iterator to the right position 397 int move = 0; 398 while (move != lineCount) 399 { 400 if (move < lineCount) 401 { 402 ++move; 403 this->bufferIterator--; 404 } 405 else 406 { 407 --move; 408 this->bufferIterator++; 409 } 410 } 411 // redisplay the buffers 412 list<char*>::const_iterator it = this->bufferIterator; 413 for (unsigned int i = 0; i < this->bufferDisplaySize; i++) 414 { 415 this->bufferText[i]->setText((*it), false); 416 it--; 417 } 423 418 } 424 419 -
trunk/src/lib/shell/shell_buffer.cc
r5781 r5783 92 92 delete[] (*bufferLine); 93 93 } 94 this->buffer. erase(this->buffer.begin(), this->buffer.end());94 this->buffer.clear(); 95 95 } 96 96 -
trunk/src/lib/shell/shell_completion.cc
r5780 r5783 352 352 void ShellCompletion::emptyCompletionList() 353 353 { 354 this->completionList.erase(this->completionList.begin(), 355 this->completionList.end()); 354 this->completionList.clear(); 356 355 } 357 356
Note: See TracChangeset
for help on using the changeset viewer.