Code

remove unneeded document parameter from constructor
authormental <mental@users.sourceforge.net>
Mon, 6 Mar 2006 02:10:25 +0000 (02:10 +0000)
committermental <mental@users.sourceforge.net>
Mon, 6 Mar 2006 02:10:25 +0000 (02:10 +0000)
ChangeLog
src/document-subset.cpp
src/document-subset.h

index 9e48bfb3327d643b28df2c66ad4d7e4c939124aa..0c97edc3bab6beaf7864050f223c57459b2f1134 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-03-05  MenTaLguY  <mental@rydia.net>
+
+    * src/document-subset.cpp: remove unneeded document parameter from
+         constructor
+
 2006-03-05  MenTaLguY  <mental@rydia.net>
 
     * src/document-subset.cpp:
index d156b045b23dab2d2f58525e24f600ddb65f8995..f6b32c0f40ac42647a36a2ad972e0d5a31342285 100644 (file)
@@ -194,8 +194,8 @@ private:
     }
 };
 
-DocumentSubset::DocumentSubset(SPDocument *document)
-: _document(document), _relations(new DocumentSubset::Relations())
+DocumentSubset::DocumentSubset()
+: _relations(new DocumentSubset::Relations())
 {
 }
 
index 0e40bab8db623ad45656bd9153d9223750911563..269b4c59b95c74de065966dae20df6c88ff0f660 100644 (file)
@@ -37,7 +37,7 @@ public:
     sigc::connection connectRemoved(sigc::slot<void, SPObject *> slot) const;
 
 protected:
-    explicit DocumentSubset(SPDocument *document);
+    DocumentSubset();
 
     void _addOne(SPObject *obj);
     void _removeOne(SPObject *obj) { _remove(obj, false); }
@@ -51,7 +51,6 @@ private:
 
     class Relations;
 
-    SPDocument *_document;
     Relations *_relations;
 };