X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fconnection-pool.h;h=67bcf00027010038e55d60825a3db8924790edf2;hb=d405eeb21d54618e50b98f0483d2663faa13c7d6;hp=7a14f57d8c5c11056d872e7b22a238793a02eabe;hpb=5fa4e9ef855c58f260c0a08fc8dc38ce3b53d942;p=inkscape.git diff --git a/src/connection-pool.h b/src/connection-pool.h index 7a14f57d8..67bcf0002 100644 --- a/src/connection-pool.h +++ b/src/connection-pool.h @@ -19,21 +19,20 @@ class ConnectionPool typedef std::map ConnectionMap; - ~ConnectionPool () + virtual ~ConnectionPool () { - for (ConnectionMap::iterator iter = map.begin (), end = map.end (); iter != end; ++iter) - { - sigc::connection* connection = (*iter).second; - connection->disconnect (); - delete connection; - } + for (ConnectionMap::iterator iter = map.begin (), end = map.end (); iter != end; ++iter) { + sigc::connection* connection = (*iter).second; + connection->disconnect (); + delete connection; + } } void add_connection (std::string name, sigc::connection* connection) { - if (map.find (name) != map.end ()) throw NAME_EXISTS; - map.insert (std::make_pair (name, connection)); + if (map.find (name) != map.end ()) throw NAME_EXISTS; + map.insert (std::make_pair (name, connection)); } void