From: mental Date: Mon, 6 Mar 2006 02:10:25 +0000 (+0000) Subject: remove unneeded document parameter from constructor X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f3823063dfabb21265f42696bacbc66c3ffae606;p=inkscape.git remove unneeded document parameter from constructor --- diff --git a/ChangeLog b/ChangeLog index 9e48bfb33..0c97edc3b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-03-05 MenTaLguY + + * src/document-subset.cpp: remove unneeded document parameter from + constructor + 2006-03-05 MenTaLguY * src/document-subset.cpp: diff --git a/src/document-subset.cpp b/src/document-subset.cpp index d156b045b..f6b32c0f4 100644 --- a/src/document-subset.cpp +++ b/src/document-subset.cpp @@ -194,8 +194,8 @@ private: } }; -DocumentSubset::DocumentSubset(SPDocument *document) -: _document(document), _relations(new DocumentSubset::Relations()) +DocumentSubset::DocumentSubset() +: _relations(new DocumentSubset::Relations()) { } diff --git a/src/document-subset.h b/src/document-subset.h index 0e40bab8d..269b4c59b 100644 --- a/src/document-subset.h +++ b/src/document-subset.h @@ -37,7 +37,7 @@ public: sigc::connection connectRemoved(sigc::slot 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; };