]> git.mxchange.org Git - simgear.git/blobdiff - simgear/props/props.cxx
use auto_ptr instead
[simgear.git] / simgear / props / props.cxx
index f15c10ca006e58b83d6c1fb68b9655e56d0eb7ec..0bc56dcd6fd786241e9b9b57468e95b23e3338af 100644 (file)
@@ -6,6 +6,10 @@
 //
 // $Id$
 
+#ifdef HAVE_CONFIG_H
+#  include <simgear_config.h>
+#endif
+
 #include "props.hxx"
 
 #include <algorithm>
@@ -515,6 +519,8 @@ SGPropertyNode::clearValue ()
             }
             _local_val.string_val = 0;
             break;
+        default: // avoid compiler warning
+            break;
         }
         delete _value.val;
         _value.val = 0;
@@ -1588,6 +1594,8 @@ std::ostream& SGPropertyNode::printOn(std::ostream& stream) const
         break;
     case props::NONE:
         break;
+    default: // avoid compiler warning
+        break;
     }
     return stream;
 }