diff options
| author | Tomasz Boczkowski <penginsbacon@gmail.com> | 2014-05-29 10:35:19 +0000 |
|---|---|---|
| committer | Tomasz Boczkowski <penginsbacon@gmail.com> | 2014-05-29 10:35:19 +0000 |
| commit | 35100d54d146fd0fcf702abca02311b0ef95152f (patch) | |
| tree | 11caf4ca09200bd857f7992e039bba262e71518d /src/sp-pattern.cpp | |
| parent | SPPattern c++-sification: replaced function by methods pt3 (diff) | |
| download | inkscape-35100d54d146fd0fcf702abca02311b0ef95152f.tar.gz inkscape-35100d54d146fd0fcf702abca02311b0ef95152f.zip | |
SPPattern c++-sification: class fields are private
(bzr r13341.6.23)
Diffstat (limited to '')
| -rw-r--r-- | src/sp-pattern.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sp-pattern.cpp b/src/sp-pattern.cpp index 82e3cdacf..c2835eadd 100644 --- a/src/sp-pattern.cpp +++ b/src/sp-pattern.cpp @@ -213,8 +213,8 @@ void SPPattern::set(unsigned int key, const gchar* value) { /* fixme: We need ::order_changed handler too (Lauris) */ -void pattern_getchildren(SPPattern *pat, std::list<SPObject*>& l) -{ +void SPPattern::_get_children(std::list<SPObject*>& l) { + SPPattern *pat = this; for (SPPattern *pat_i = pat; pat_i != NULL; pat_i = pat_i->ref ? pat_i->ref->getObject() : NULL) { if (pat_i->firstChild()) { // find the first one with children for (SPObject *child = pat->firstChild() ; child ; child = child->getNext() ) { @@ -235,7 +235,7 @@ void SPPattern::update(SPCtx* ctx, unsigned int flags) { flags &= SP_OBJECT_MODIFIED_CASCADE; std::list<SPObject*> l; - pattern_getchildren (this, l); + _get_children(l); for (SPObjectIterator it = l.begin(); it != l.end(); it++) { SPObject *child = *it; @@ -260,7 +260,7 @@ void SPPattern::modified(unsigned int flags) { flags &= SP_OBJECT_MODIFIED_CASCADE; std::list<SPObject*> l; - pattern_getchildren (this, l); + _get_children(l); for (SPObjectIterator it = l.begin(); it != l.end(); it++) { SPObject *child = *it; |
