aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-30 15:04:14 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-30 15:04:14 +0100
commit996b3c8315603617d852e3590a87148a584e75ee (patch)
treedfe5fecbdec21521a1895b2ac2b68b377921233d /src
parent15ac3e05495e0b6fe561bd3e7dae0b8fe650ded9 (diff)
inline some CSS methods
Diffstat (limited to 'src')
-rw-r--r--src/css.hh14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/css.hh b/src/css.hh
index e899816c..87f8f902 100644
--- a/src/css.hh
+++ b/src/css.hh
@@ -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