From f3823063dfabb21265f42696bacbc66c3ffae606 Mon Sep 17 00:00:00 2001 From: mental Date: Mon, 6 Mar 2006 02:10:25 +0000 Subject: [PATCH] remove unneeded document parameter from constructor --- ChangeLog | 5 +++++ src/document-subset.cpp | 4 ++-- src/document-subset.h | 3 +-- 3 files changed, 8 insertions(+), 4 deletions(-) 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; }; -- 2.30.2