]> git.mxchange.org Git - simgear.git/blobdiff - simgear/props/props.hxx
allow sound effects in the configuration file to be added to the 'avionics' sample...
[simgear.git] / simgear / props / props.hxx
index b5bf8a2d882f2203b43a513b47ae0715a0498934..dc9871343b176c8f8d309b68c0b13aa1a837cf42 100644 (file)
@@ -836,7 +836,7 @@ public:
   /**
    * Get the number of child nodes.
    */
-  int nChildren () const { return _children.size(); }
+  int nChildren () const { return (int)_children.size(); }
 
 
   /**
@@ -1568,7 +1568,7 @@ public:
   /**
    * Get the number of listeners.
    */
-  int nListeners () const { return _listeners ? _listeners->size() : 0; }
+  int nListeners () const { return _listeners ? (int)_listeners->size() : 0; }
 
 
   /**
@@ -1861,6 +1861,8 @@ T SGPropertyNode::getValue(typename boost::disable_if_c<simgear::props
     case UNSPECIFIED:
         return simgear::parseString<T>(make_string());
         break;
+    default: // avoid compiler warning
+        break;
     }
     return SGRawValue<T>::DefaultValue();
 }