]> git.mxchange.org Git - simgear.git/blobdiff - simgear/props/tiedpropertylist.hxx
Update doxgen config and some comments.
[simgear.git] / simgear / props / tiedpropertylist.hxx
index 647b8d5627eca1d216aeeb253b0d7dcb5407541d..4e597af0c34021b50c228cce1c145b2dbe382410 100644 (file)
@@ -37,11 +37,11 @@ public:
     virtual ~TiedPropertyList()
     { 
         _root = 0;
-        if (size()>0)
+        if (! empty())
         {
             SG_LOG(SG_GENERAL, SG_ALERT, "Detected properties with dangling ties. Use 'Untie' before removing a TiedPropertyList.");
             // running debug mode: go, fix it!
-            assert(size() == 0);
+            assert(empty());
         }
     }
 
@@ -51,7 +51,6 @@ public:
     template<typename T> SGPropertyNode_ptr Tie( SGPropertyNode_ptr node, const SGRawValue<T> &rawValue, bool useDefault = true  ) {
         bool success = node->tie( rawValue, useDefault );
         if( success ) {
-            SG_LOG( SG_GENERAL, SG_DEBUG, "Tied " << node->getPath() );
             push_back( node );
         } else {
 #if PROPS_STANDALONE
@@ -124,8 +123,7 @@ public:
     }
 
     void Untie() {
-        while( size() > 0 ) {
-            SG_LOG( SG_GENERAL, SG_DEBUG, "untie of " << back()->getPath() );
+        while( ! empty() ) {
             back()->untie();
             pop_back();
         }