You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EditorCtrls get passed a CatalystWrapper& reference, which they store in a reference member variable.
RevTooltip gets passed a CatalystWrapper (not a reference), which is stored in a non-reference member variable.
Is there a checklist for when to use what?
On first look it seems that changing RevTooltip to also use references wouldn't be a bad thing, but I wonder if they are using non-references due to a big fix.
The text was updated successfully, but these errors were encountered:
Non-reference CatalystWrappers should only be used when you are not sure that the parent will stay around. So the one in RevTooltip should be safe to change to a reference.
EditorCtrls get passed a CatalystWrapper& reference, which they store in a reference member variable.
RevTooltip gets passed a CatalystWrapper (not a reference), which is stored in a non-reference member variable.
Is there a checklist for when to use what?
On first look it seems that changing RevTooltip to also use references wouldn't be a bad thing, but I wonder if they are using non-references due to a big fix.
The text was updated successfully, but these errors were encountered: