File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ void Stage::setVideoState(VideoState newVideoState)
6262}
6363
6464/* ! \copydoc setVideoState() */
65- void Stage::setVideoState (std::string newVideoState)
65+ void Stage::setVideoState (const std::string & newVideoState)
6666{
6767 if (newVideoState == " on" )
6868 setVideoState (VideoState::On);
@@ -93,7 +93,7 @@ void Stage::setVideoTransparency(int newVideoTransparency)
9393}
9494
9595/* ! Returns the text to speech language. */
96- std::string Stage::textToSpeechLanguage () const
96+ const std::string & Stage::textToSpeechLanguage () const
9797{
9898 return m_textToSpeechLanguage;
9999}
Original file line number Diff line number Diff line change @@ -29,13 +29,13 @@ class LIBSCRATCHCPP_EXPORT Stage : public Target
2929 VideoState videoState () const ;
3030 std::string videoStateStr () const ;
3131 void setVideoState (VideoState newVideoState);
32- void setVideoState (std::string newVideoState);
32+ void setVideoState (const std::string & newVideoState);
3333 void setVideoState (const char *newVideoState);
3434
3535 int videoTransparency () const ;
3636 void setVideoTransparency (int newVideoTransparency);
3737
38- std::string textToSpeechLanguage () const ;
38+ const std::string & textToSpeechLanguage () const ;
3939 void setTextToSpeechLanguage (const std::string &newTextToSpeechLanguage);
4040
4141 protected:
You can’t perform that action at this time.
0 commit comments