void setCurrentTransformations(const NodeTransformations& theSet){
m_currentTransformations=theSet;
}
I want to confirm that I am understanding this exactly because theSet
is going out of scope just after this function gets called.
This is going to actually copy theSet
into m_currentTransformations
, right? In other words, it is safe, regardless of the scope of theSet
in the caller.
It's the fact that if this was a pointer instead of a reference, I know it would not be safe. But I assume here that it is perfectly fine, and m_currentTransformations
will copy theSet
so that it will not matter what happens to the original value that theSet
references, right?