summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Qt3DStudio/Palettes/Inspector/Qt3DSDMInspectorGroup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Authoring/Qt3DStudio/Palettes/Inspector/Qt3DSDMInspectorGroup.cpp')
-rw-r--r--src/Authoring/Qt3DStudio/Palettes/Inspector/Qt3DSDMInspectorGroup.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Authoring/Qt3DStudio/Palettes/Inspector/Qt3DSDMInspectorGroup.cpp b/src/Authoring/Qt3DStudio/Palettes/Inspector/Qt3DSDMInspectorGroup.cpp
index f62812ac..c3f435f1 100644
--- a/src/Authoring/Qt3DStudio/Palettes/Inspector/Qt3DSDMInspectorGroup.cpp
+++ b/src/Authoring/Qt3DStudio/Palettes/Inspector/Qt3DSDMInspectorGroup.cpp
@@ -29,7 +29,6 @@
#include "Qt3DSDMInspectorGroup.h"
#include "Qt3DSDMInspectorRow.h"
-#include "Qt3DSDMInspectable.h"
#include "Qt3DSDMMetaData.h"
Qt3DSDMInspectorGroup::Qt3DSDMInspectorGroup(const QString &inName)
@@ -39,11 +38,12 @@ Qt3DSDMInspectorGroup::Qt3DSDMInspectorGroup(const QString &inName)
Qt3DSDMInspectorGroup::~Qt3DSDMInspectorGroup()
{
- for (auto it = m_inspectorRows.begin(); it != m_inspectorRows.end(); ++it)
- delete (*it);
+ for (auto row : m_inspectorRows)
+ delete row;
+
+ m_inspectorRows.clear();
}
-// Create a new InspectorRowBase.
void Qt3DSDMInspectorGroup::CreateRow(CDoc *inDoc,
qt3dsdm::Qt3DSDMMetaDataPropertyHandle inProperty)
{