Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 8, 2017, 2:55:15 PM (6 years ago)
Author:
kuchlert
Message:

eigentlich fertig nur noch altes system entfernen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Dialog_HS17/src/modules/dialog/Answer.cc

    r11611 r11644  
    2323        }
    2424
    25         void Answer::setAnswerId(std::string answerId){
     25        void Answer::setAnswerId(const std::string& answerId){
    2626                this->answerId_ = answerId;
    2727        }
    2828
    29         std::string Answer::getAnswerId(){
     29        const std::string& Answer::getAnswerId() const
     30        {
    3031                return this->answerId_;
    3132        }
    3233
    33         void Answer::setNextQuestion(std::string nextId)
     34        void Answer::setNextQuestion(const std::string& nextId)
    3435        {
    3536                this->nextQuestionId_ = nextId;
    3637        }
    3738
    38         std::string Answer::getNextQuestion()
     39        const std::string& Answer::getNextQuestion() const
    3940        {
    4041                return this->nextQuestionId_;
    4142        }
    4243
    43         void Answer::setAnswer(std::string answer)
     44        void Answer::setAnswer(const std::string& answer)
    4445        {
    4546                this->answer_ = answer;
    4647        }
    4748
    48         std::string Answer::getAnswer()
     49        const std::string& Answer::getAnswer() const
    4950        {
    5051                return this->answer_;
Note: See TracChangeset for help on using the changeset viewer.