From 7f5c3b223a2df88f005769eff3fa9265acbcec36 Mon Sep 17 00:00:00 2001 From: ehofman Date: Fri, 14 Oct 2005 16:27:06 +0000 Subject: [PATCH] =?utf8?q?Mathias=20Fr=F6hlich:?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This one, removes some virtual qualifiers at a private member class of SGPropertyNode. These virtual qualifiers are really useless and stop the compiler from inlineing these functions. I gain a single frame with my favourite aircraft per second! --- simgear/props/props.hxx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/simgear/props/props.hxx b/simgear/props/props.hxx index 9ce7df4b..deb4f14d 100644 --- a/simgear/props/props.hxx +++ b/simgear/props/props.hxx @@ -1293,11 +1293,11 @@ private: class entry { public: entry (); - virtual ~entry (); - virtual const char * get_key () { return _key; } - virtual void set_key (const char * key); - virtual SGPropertyNode * get_value () { return _value; } - virtual void set_value (SGPropertyNode * value); + ~entry (); + const char * get_key () { return _key; } + void set_key (const char * key); + SGPropertyNode * get_value () { return _value; } + void set_value (SGPropertyNode * value); private: char * _key; SGPropertyNode * _value; @@ -1310,9 +1310,9 @@ private: class bucket { public: bucket (); - virtual ~bucket (); - virtual entry * get_entry (const char * key, bool create = false); - virtual void erase(const char * key); + ~bucket (); + entry * get_entry (const char * key, bool create = false); + void erase(const char * key); private: int _length; entry ** _entries; @@ -1321,10 +1321,10 @@ private: friend class bucket; hash_table (); - virtual ~hash_table (); - virtual SGPropertyNode * get (const char * key); - virtual void put (const char * key, SGPropertyNode * value); - virtual void erase(const char * key); + ~hash_table (); + SGPropertyNode * get (const char * key); + void put (const char * key, SGPropertyNode * value); + void erase(const char * key); private: unsigned int hashcode (const char * key); -- 2.39.5