File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ void Sprite::setRotationStyle(RotationStyle newRotationStyle)
124124}
125125
126126/* ! \copydoc setRotationStyle() */
127- void Sprite::setRotationStyle (std::string newRotationStyle)
127+ void Sprite::setRotationStyle (const std::string & newRotationStyle)
128128{
129129 if (newRotationStyle == " all around" )
130130 setRotationStyle (RotationStyle::AllAround);
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ class LIBSCRATCHCPP_EXPORT Sprite : public Target
4343 RotationStyle rotationStyle () const ;
4444 std::string rotationStyleStr () const ;
4545 void setRotationStyle (RotationStyle newRotationStyle);
46- void setRotationStyle (std::string newRotationStyle);
46+ void setRotationStyle (const std::string & newRotationStyle);
4747 void setRotationStyle (const char *newRotationStyle);
4848
4949 protected:
You can’t perform that action at this time.
0 commit comments