Alter references per suggestion.

This commit is contained in:
Kasen IO 2020-06-30 18:24:21 -04:00
parent d9e0605b4d
commit d881e1e3c2
2 changed files with 6 additions and 6 deletions

View file

@ -60,13 +60,13 @@ bool ClipboardScriptingInterface::importEntities(
return retVal;
}
QVector<EntityItemID> ClipboardScriptingInterface::pasteEntities(glm::vec3 position, QString entityHostType) {
QVector<EntityItemID> ClipboardScriptingInterface::pasteEntities(const glm::vec3& position, const QString& entityHostType) {
QVector<EntityItemID> retVal;
BLOCKING_INVOKE_METHOD(qApp, "pasteEntities",
Q_RETURN_ARG(QVector<EntityItemID>, retVal),
Q_ARG(QString, entityHostType),
Q_ARG(float, position.x),
Q_ARG(float, position.y),
Q_ARG(float, position.z));
Q_ARG(const QString&, entityHostType),
Q_ARG(const float&, position.x),
Q_ARG(const float&, position.y),
Q_ARG(const float&, position.z));
return retVal;
}

View file

@ -121,7 +121,7 @@ public:
* @returns {Uuid[]} The IDs of the new entities that were created as a result of the paste operation. If entities couldn't
* be created then an empty array is returned.
*/
Q_INVOKABLE QVector<EntityItemID> pasteEntities(glm::vec3 position, QString entityHostType = "domain");
Q_INVOKABLE QVector<EntityItemID> pasteEntities(const glm::vec3& position, const QString& entityHostType = "domain");
};
#endif // hifi_ClipboardScriptingInterface_h