]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/transmission.cxx
new FSF address
[flightgear.git] / src / ATC / transmission.cxx
index 3e52c970ce7d5c3ce8a15db06a6493b9982116a5..0a6ea4b76193fc20bb7811279439f6e9d98b774d 100644 (file)
 //
 // You should have received a copy of the GNU General Public License
 // along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
 
 #include "transmission.hxx"
 
@@ -42,7 +46,7 @@ TransPar FGTransmission::Parse() {
   TransPar   tpar;
   string     tokens[20];
   int        msglen,toklen;
-  char       dum;
+  //char       dum;
   int        i,j,k;
   const char *capl = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
 
@@ -52,7 +56,7 @@ TransPar FGTransmission::Parse() {
   for ( i=0; i < msglen; ++i ) {
     if ( TransText.c_str()[i] != ' ' ) {
       if ( TransText.c_str()[i] != ',' ) tokens[tkn] += TransText.c_str()[i];
-    } else if ( tokens[tkn] != "" ) {
+    } else if ( !tokens[tkn].empty() ) {
       if ( tkn <= 20 ) {
        tkn += 1;
       } else {
@@ -71,7 +75,7 @@ TransPar FGTransmission::Parse() {
     } else if ( tokens[i] == "landing"  ) { 
       tpar.intention = "landing";
       for ( j=i+1; j<=i+2; ++j ) {
-       if ( tokens[j] != "" ) {
+       if ( !tokens[j].empty() ) {
          toklen = strlen( tokens[j].c_str() );
          bool aid = true;
          for ( k=0; k<toklen; ++k )