mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-15 00:27:31 +00:00
TWP: Fix big parameter passed by value in TextNode
Coverity CID 1540556
This commit is contained in:
parent
7604305b88
commit
a08e11aedf
@ -449,7 +449,7 @@ TextNode::TextNode() : Node("text") {
|
||||
|
||||
TextNode::~TextNode() {}
|
||||
|
||||
void TextNode::setText(Text text) {
|
||||
void TextNode::setText(const Text &text) {
|
||||
_text = text;
|
||||
updateBounds();
|
||||
}
|
||||
|
@ -201,7 +201,7 @@ public:
|
||||
TextNode();
|
||||
virtual ~TextNode() final;
|
||||
|
||||
void setText(Text text);
|
||||
void setText(const Text &text);
|
||||
void updateBounds();
|
||||
virtual Rectf getRect() const override final;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user