summaryrefslogtreecommitdiff
path: root/src/MainWindow.h
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-12-06 00:16:54 (GMT)
committerMarius Kintel <marius@kintel.net>2011-12-06 00:17:03 (GMT)
commit65a5aa23bfd78718972082f82eb7366d01a968a6 (patch)
tree756394b55f73d9927fa61e8438d9ddf70d6d3dda /src/MainWindow.h
parentd392ee33f6eb57d2d08a7a7703fb9118aa82698c (diff)
Refactoring: Use shared_ptr instead of our own shared pointer implementation for CSGTerm
Diffstat (limited to 'src/MainWindow.h')
-rw-r--r--src/MainWindow.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/MainWindow.h b/src/MainWindow.h
index 06332b0..b2d0f60 100644
--- a/src/MainWindow.h
+++ b/src/MainWindow.h
@@ -7,6 +7,7 @@
#include "context.h"
#include "module.h"
#include "Tree.h"
+#include "memory.h"
#include <vector>
class MainWindow : public QMainWindow, public Ui::MainWindow
@@ -34,8 +35,8 @@ public:
AbstractNode *root_node; // Root if the root modifier (!) is used
Tree tree;
- class CSGTerm *root_raw_term; // Result of CSG term rendering
- CSGTerm *root_norm_term; // Normalized CSG products
+ shared_ptr<class CSGTerm> root_raw_term; // Result of CSG term rendering
+ shared_ptr<CSGTerm> root_norm_term; // Normalized CSG products
class CSGChain *root_chain;
#ifdef ENABLE_CGAL
class CGAL_Nef_polyhedron *root_N;
@@ -46,9 +47,9 @@ public:
#endif
class ThrownTogetherRenderer *thrownTogetherRenderer;
- std::vector<CSGTerm*> highlight_terms;
+ std::vector<shared_ptr<CSGTerm> > highlight_terms;
CSGChain *highlights_chain;
- std::vector<CSGTerm*> background_terms;
+ std::vector<shared_ptr<CSGTerm> > background_terms;
CSGChain *background_chain;
QString last_compiled_doc;
contact: Jan Huwald // Impressum