mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-08 13:15:01 +00:00
CNodeSelection: Avoid copy churning
We can return via const reference to avoid making redundant copies of QLists.
This commit is contained in:
@@ -119,7 +119,7 @@ public:
|
||||
void SetAllowedNodeTypes(FNodeFlags Types) { mAllowedNodes = Types; }
|
||||
bool IsAllowedType(ENodeType Type) const { return (mAllowedNodes & Type) != 0; }
|
||||
bool IsAllowedType(CSceneNode *pNode) const { return (mAllowedNodes & pNode->NodeType()) != 0; }
|
||||
QList<CSceneNode*> SelectedNodeList() const { return mSelectedNodes; }
|
||||
const QList<CSceneNode*>& SelectedNodeList() const { return mSelectedNodes; }
|
||||
|
||||
signals:
|
||||
void Modified();
|
||||
|
||||
Reference in New Issue
Block a user