Make Preference implicit conversion operator return a reference
Instead of copying. We can let the caller decide if they want to copy. Also helps with #756.
This commit is contained in:
+1
-1
@@ -120,7 +120,7 @@ public:
|
|||||||
return m_defaultValue;
|
return m_defaultValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
operator const T () const
|
operator const T &() const
|
||||||
{
|
{
|
||||||
return Get();
|
return Get();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user