Skip to content

Commit 923a0a8

Browse files
committed
Stage: Add missing references
1 parent 2b5c77c commit 923a0a8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/scratch/stage.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

src/scratch/stage.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)