]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/panel.cxx
Use !strcmp for all property string-value comparisons.
[flightgear.git] / src / Cockpit / panel.cxx
index 5443c0437d373f682ff6817f2af5dfc11bf06290..7538e29b673b5307083e7a2f2df0d9761ff5ed03 100644 (file)
@@ -1076,7 +1076,7 @@ FGTextLayer::Chunk::Chunk (const string &text, const string &fmt)
   : _type(FGTextLayer::TEXT), _fmt(fmt)
 {
   _text = text;
-  if (_fmt == ""
+  if (_fmt.empty()
     _fmt = "%s";
 }
 
@@ -1084,7 +1084,7 @@ FGTextLayer::Chunk::Chunk (ChunkType type, const SGPropertyNode * node,
                           const string &fmt, float mult)
   : _type(type), _fmt(fmt), _mult(mult)
 {
-  if (_fmt == "") {
+  if (_fmt.empty()) {
     if (type == TEXT_VALUE)
       _fmt = "%s";
     else