]> git.mxchange.org Git - flightgear.git/commitdiff
Fix some more unitialized value warnings.
authorMathias Froehlich <Mathias.Froehlich@web.de>
Sat, 29 May 2010 15:17:49 +0000 (17:17 +0200)
committerMathias Froehlich <Mathias.Froehlich@web.de>
Sat, 29 May 2010 15:17:49 +0000 (17:17 +0200)
src/ATCDCL/ATC.hxx
src/ATCDCL/atis.cxx
src/Instrumentation/gps.cxx

index e2751460e1cb3e01999850e9a4f67aadcb64ee2d..2b8a0a933570645f3ea2cff150699733d33e5228 100644 (file)
@@ -65,6 +65,8 @@ enum plane_type {
 // PlaneRec - a structure holding ATC-centric details of planes under control
 // This might move or change eventually
 struct PlaneRec {
+        PlaneRec() : type(UNKNOWN), squawkcode(0) {}
+        PlaneRec(const std::string& s) : type(UNKNOWN), callsign(s), squawkcode(0) {}
        plane_type type;
        std::string callsign;
        int squawkcode;
index 67c108f4bfaba8774a5ed6da6fb35cbc65ddba74..0747903de5b49ca9004bdf3514ec52dcbb11d196 100644 (file)
@@ -63,10 +63,9 @@ using boost::ref;
 using boost::tie;
 
 FGATIS::FGATIS() :
-  transmission(""),
-  trans_ident(""),
   old_volume(0),
   atis_failed(false),
+  msg_OK(0),
   attention(0),
   _prev_display(0),
   refname("atis")
index 1ddb87e083356db9c883a4e360e67c6eca49ec9c..4b522dfce05a82484045cc69c38982b32967cd3c 100644 (file)
@@ -219,6 +219,7 @@ GPS::GPS ( SGPropertyNode *node) :
   _mode("init"),
   _name(node->getStringValue("name", "gps")),
   _num(node->getIntValue("number", 0)),
+  _searchResultsCached(false),
   _computeTurnData(false),
   _anticipateTurn(false),
   _inTurn(false)