removed a duplicate member

Fri, 22 Jun 2018 15:03:50 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Fri, 22 Jun 2018 15:03:50 +0300
changeset 1424
737df8e904af
parent 1423
6608db56b047
child 1425
5354313b9958

removed a duplicate member

src/lddocument.cpp file | annotate | diff | comparison | revisions
src/lddocument.h file | annotate | diff | comparison | revisions
--- a/src/lddocument.cpp	Fri Jun 22 14:46:30 2018 +0300
+++ b/src/lddocument.cpp	Fri Jun 22 15:03:50 2018 +0300
@@ -29,8 +29,7 @@
 	HierarchyElement (parent),
     m_history (new EditHistory (this)),
 	m_savePosition(-1),
-    m_tabIndex(-1),
-	m_manager (parent)
+    m_tabIndex(-1)
 {
 	connect(
 		this,
@@ -165,7 +164,7 @@
 	if (not isFrozen())
 	{
 		setFrozen(true);
-		m_manager->documentClosed(this);
+		documentManager()->documentClosed(this);
 	}
 }
 
@@ -519,7 +518,7 @@
 		m_isInlining = true;
 
 		// First ask the manager to deal with this inline (this takes logoed studs into account)
-		if (not m_manager->preInline(this, model, deep, renderinline))
+		if (not documentManager()->preInline(this, model, deep, renderinline))
 		{
 			for (LDObject* object : objects())
 			{
--- a/src/lddocument.h	Fri Jun 22 14:46:30 2018 +0300
+++ b/src/lddocument.h	Fri Jun 22 15:03:50 2018 +0300
@@ -142,7 +142,6 @@
 	QVector<LDPolygon> m_polygonData;
 	QMap<LDObject*, QSet<Vertex>> m_objectVertices;
 	QSet<Vertex> m_vertices;
-	DocumentManager* m_manager;
 
 private slots:
 	void objectChanged(const LDObjectState &before, const LDObjectState &after);

mercurial