summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 73232a1)
raw | patch | inline | side by side (parent: 73232a1)
author | daleharvey <daleharvey@users.sourceforge.net> | |
Mon, 4 Sep 2006 15:41:45 +0000 (15:41 +0000) | ||
committer | daleharvey <daleharvey@users.sourceforge.net> | |
Mon, 4 Sep 2006 15:41:45 +0000 (15:41 +0000) |
src/jabber_whiteboard/keynode.cpp | patch | blob | history | |
src/jabber_whiteboard/keynode.h | patch | blob | history |
index af2c0762edfaa739726141a92321b2743d3ab6f6..c60bd782734fb9a458e33251adc272d489adbc76 100644 (file)
@@ -124,7 +124,7 @@ void KeyNodeTable::addHistory(XML::Node *node, Glib::ustring attribute, Glib::us
}
}
-Configure& KeyNodeTable::getLastHistory(XML::Node *node)
+Configure KeyNodeTable::getLastHistory(XML::Node *node)
{
std::vector<KeyNodePair>::iterator iter;
for (iter = items.begin() ; iter != items.end() ; iter++)
index df7557fd1e0c38c837ef905d6c25b59bb479c916..9b8ae8394a63fb1d7c88e4b837af8b73b1eae3f4 100644 (file)
KeyNodePair(const Glib::ustring &keyArg, const XML::Node *nodeArg)
{
- key = keyArg;
- node = (XML::Node *)nodeArg;
- version = 0;
- index = 0;
+ this->key = keyArg;
+ this->node = (XML::Node *)nodeArg;
+ this->version = 0;
+ this->index = 0;
+ this->history.push_back(Configure("",""));
}
KeyNodePair(const Glib::ustring &keyArg, const XML::Node *nodeArg,
unsigned int version, signed int index)
{
- key = keyArg;
- node = (XML::Node *)nodeArg;
+ this->key = keyArg;
+ this->node = (XML::Node *)nodeArg;
this->version = version;
this->index = index;
+ this->history.push_back(Configure("",""));
}
KeyNodePair(const KeyNodePair &other)
{
- key = other.key;
- node = other.node;
- version = other.version;
- index = other.index;
- history = other.history;
+ this->key = other.key;
+ this->node = other.node;
+ this->version = other.version;
+ this->index = other.index;
+ this->history = other.history;
}
virtual ~KeyNodePair() {}
virtual void addHistory(XML::Node *node, Glib::ustring attribute, Glib::ustring value);
- virtual Configure& getLastHistory(XML::Node *node);
+ virtual Configure getLastHistory(XML::Node *node);
private: