Skip to content

Commit 2b5c77c

Browse files
committed
Sprite: Add missing references to arguments
1 parent 1db1e9b commit 2b5c77c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/scratch/sprite.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

src/scratch/sprite.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)