Skip to content

Commit

Permalink
Make getAsSelectionList string parameter referenced.
Browse files Browse the repository at this point in the history
... not copied by value, which will be expensive for a MString object.
  • Loading branch information
david-cattermole committed Dec 31, 2022
1 parent c82be0b commit d7a4289
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mmSolver/mayahelper/maya_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ MStatus getAsSelectionList(const MStringArray &nodeNames,
return status;
}

MStatus getAsSelectionList(const MString nodeName, MSelectionList &selList) {
MStatus getAsSelectionList(const MString &nodeName, MSelectionList &selList) {
MStringArray nodeNames;
nodeNames.append(nodeName);
return getAsSelectionList(nodeNames, selList);
Expand Down
2 changes: 1 addition & 1 deletion src/mmSolver/mayahelper/maya_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ enum class ObjectType {
MStatus getAsSelectionList(const MStringArray &nodeNames,
MSelectionList &selList);

MStatus getAsSelectionList(const MString nodeName, MSelectionList &selList);
MStatus getAsSelectionList(const MString &nodeName, MSelectionList &selList);

MStatus nodeExistsAndIsType(const MString &nodeName, const MFn::Type nodeType);

Expand Down

0 comments on commit d7a4289

Please sign in to comment.