diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-01-30 15:04:14 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-01-30 15:04:14 +0100 |
commit | 996b3c8315603617d852e3590a87148a584e75ee (patch) | |
tree | dfe5fecbdec21521a1895b2ac2b68b377921233d | |
parent | 15ac3e05495e0b6fe561bd3e7dae0b8fe650ded9 (diff) |
inline some CSS methods
-rw-r--r-- | src/css.hh | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -160,7 +160,7 @@ class CssProperty { Name name; Value value; - void free () { + inline void free () { switch (name) { case CssProperty::CSS_PROPERTY_CONTENT: case CssProperty::CSS_PROPERTY_FONT_FAMILY: @@ -181,12 +181,12 @@ class CssPropertyList : public lout::misc::SimpleVector <CssProperty> { bool ownerOfStrings; public: - CssPropertyList(bool ownerOfStrings = false) : + inline CssPropertyList(bool ownerOfStrings = false) : lout::misc::SimpleVector <CssProperty> (1) { refCount = 0; this->ownerOfStrings = ownerOfStrings; }; - CssPropertyList(const CssPropertyList &p) : + inline CssPropertyList(const CssPropertyList &p) : lout::misc::SimpleVector <CssProperty> (p) { refCount = 0; ownerOfStrings = false; @@ -194,12 +194,12 @@ class CssPropertyList : public lout::misc::SimpleVector <CssProperty> { ~CssPropertyList (); void set (CssProperty::Name name, CssProperty::Value value); - void set (CssProperty::Name name, char *value) { + inline void set (CssProperty::Name name, char *value) { CssProperty::Value v; v.strVal = value; set (name, v); }; - void set (CssProperty::Name name, int value) { + inline void set (CssProperty::Name name, int value) { CssProperty::Value v; v.intVal = value; set (name, v); @@ -296,8 +296,8 @@ class CssStyleSheet { delete get (i); }; - bool equals (lout::object::Object *other) { return this == other; }; - int hashValue () { return (intptr_t) this; }; + inline bool equals (lout::object::Object *other) { return this == other; }; + inline int hashValue () { return (intptr_t) this; }; }; class RuleMap : public lout::container::typed::HashTable |