We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83e45f2 commit 2d0e20fCopy full SHA for 2d0e20f
src/scratch/variable.cpp
@@ -26,7 +26,7 @@ std::string Variable::name() const
26
}
27
28
/*! Returns the value. */
29
-Value Variable::value() const
+const Value &Variable::value() const
30
{
31
return m_value;
32
src/scratch/variable.h
@@ -19,7 +19,7 @@ class LIBSCRATCHCPP_EXPORT Variable : public IEntity
19
20
std::string name() const;
21
22
- Value value() const;
+ const Value &value() const;
23
void setValue(const Value &value);
24
25
bool isCloudVariable() const;
0 commit comments