Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7315 in orxonox.OLD for trunk/src/lib/shell/shell_buffer.h


Ignore:
Timestamp:
Apr 17, 2006, 1:32:25 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: more std::string style in the Shell

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell_buffer.h

    r7314 r7315  
    4141  void addBufferLine(const char* line, va_list arg);
    4242  /** @returns the List of stings from the Buffer */
    43   const std::list<char*>* getBuffer() const { return &this->buffer; };
     43  const std::list<std::string>& getBuffer() const { return this->buffer; };
    4444 /** @returns the Count of lines processed by the Shell. */
    4545  inline long getLineCount() const { return this->lineCount; };
     
    5353    static ShellBuffer*      singletonRef;                       //!< The singleton-reference to the only memeber of this class.
    5454    unsigned int             bufferSize;                         //!< The Size of the buffer
    55     std::list<char*>         buffer;                             //!< A list of stored char-arrays(strings) to store the history
     55    std::list<std::string>   buffer;                             //!< A list of stored char-arrays(strings) to store the history
    5656
    5757    Shell*                   shell;                              //!< the Registered Shell.
Note: See TracChangeset for help on using the changeset viewer.