* Paragraph: Cosmetics and cleanups, remove uneeded redirection and uniformize Private members naming. Still a lot of cleanup needed.

* InsetList: remove clone() and create a copy ctor.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21052 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-10-19 08:57:22 +00:00
parent 050b0f152f
commit b4ef7c9968
4 changed files with 249 additions and 331 deletions

View File

@ -138,8 +138,9 @@ void InsetList::decreasePosAfterPos(pos_type pos)
} }
void InsetList::clone() InsetList::InsetList(InsetList const & il)
{ {
list_ = il.list_;
List::iterator it = list_.begin(); List::iterator it = list_.begin();
List::iterator end = list_.end(); List::iterator end = list_.end();
for (; it != end; ++it) for (; it != end; ++it)

View File

@ -25,6 +25,11 @@ class Buffer;
/// ///
class InsetList { class InsetList {
public: public:
///
InsetList() {}
///
InsetList(InsetList const &);
/// ///
class InsetTable { class InsetTable {
public: public:
@ -71,11 +76,6 @@ public:
/// ///
void decreasePosAfterPos(pos_type pos); void decreasePosAfterPos(pos_type pos);
/// replicate ourselves.
/// Warning: this should be used with care, only
/// Paragraph::Pimpl should use it actually.
void clone();
private: private:
/// ///
List list_; List list_;

File diff suppressed because it is too large Load Diff

View File

@ -384,11 +384,11 @@ private:
pos_type begin_of_body_; pos_type begin_of_body_;
/// Pimpl away stuff /// Pimpl away stuff
class Pimpl; class Private;
/// ///
friend class Paragraph::Pimpl; friend class Paragraph::Private;
/// ///
Pimpl * pimpl_; Private * d;
}; };
} // namespace lyx } // namespace lyx