From 92efc1a3b52c26d6e87584da4010c2c0743f089a Mon Sep 17 00:00:00 2001 From: Thijs Wenker Date: Mon, 30 Jul 2018 18:51:19 +0200 Subject: [PATCH] style and memory leak fixes --- .../src/AgentScriptingInterface.cpp | 1 + .../src/AgentScriptingInterface.h | 22 +++++++++---------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/assignment-client/src/AgentScriptingInterface.cpp b/assignment-client/src/AgentScriptingInterface.cpp index 9fe1897b94..3000c2b96f 100644 --- a/assignment-client/src/AgentScriptingInterface.cpp +++ b/assignment-client/src/AgentScriptingInterface.cpp @@ -12,5 +12,6 @@ #include "AgentScriptingInterface.h" AgentScriptingInterface::AgentScriptingInterface(Agent* agent) : + QObject(agent), _agent(agent) { } diff --git a/assignment-client/src/AgentScriptingInterface.h b/assignment-client/src/AgentScriptingInterface.h index e35d85d130..9fa7688778 100644 --- a/assignment-client/src/AgentScriptingInterface.h +++ b/assignment-client/src/AgentScriptingInterface.h @@ -18,17 +18,17 @@ #include "Agent.h" /**jsdoc -* @namespace Agent -* -* @hifi-assignment-client -* -* @property {boolean} isAvatar -* @property {boolean} isPlayingAvatarSound Read-only. -* @property {boolean} isListeningToAudioStream -* @property {boolean} isNoiseGateEnabled -* @property {number} lastReceivedAudioLoudness Read-only. -* @property {Uuid} sessionUUID Read-only. -*/ + * @namespace Agent + * + * @hifi-assignment-client + * + * @property {boolean} isAvatar + * @property {boolean} isPlayingAvatarSound Read-only. + * @property {boolean} isListeningToAudioStream + * @property {boolean} isNoiseGateEnabled + * @property {number} lastReceivedAudioLoudness Read-only. + * @property {Uuid} sessionUUID Read-only. + */ class AgentScriptingInterface : public QObject { Q_OBJECT Q_PROPERTY(bool isAvatar READ isAvatar WRITE setIsAvatar)