diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2010-10-17 17:49:10 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2010-10-17 17:49:10 +0200 |
commit | fde258b24ec096ffc7d4d68f02cccbc36f896d96 (patch) | |
tree | bd45c67cfae52d8af45af48796765d8cd2c6f4fa /src/css.hh | |
parent | e0f49e146d2fc54d9f69d698089dc7b903b96ee0 (diff) |
no need to inline CssPropertyList copy constructor
Diffstat (limited to 'src/css.hh')
-rw-r--r-- | src/css.hh | 21 |
1 files changed, 1 insertions, 20 deletions
@@ -304,26 +304,7 @@ class CssPropertyList : public lout::misc::SimpleVector <CssProperty> { refCount = 0; this->ownerOfStrings = ownerOfStrings; }; - inline CssPropertyList(const CssPropertyList &p, bool deep = false) : - lout::misc::SimpleVector <CssProperty> (p) { - refCount = 0; - if (deep) { - for (int i = 0; i < size (); i++) { - CssProperty *p = getRef(i); - switch (p->type) { - case CSS_TYPE_STRING: - case CSS_TYPE_SYMBOL: - p->value.strVal = dStrdup (p->value.strVal); - break; - default: - break; - } - } - ownerOfStrings = true; - } else { - ownerOfStrings = false; - } - }; + CssPropertyList(const CssPropertyList &p, bool deep = false); ~CssPropertyList (); void set (CssPropertyName name, CssValueType type, |