فهرست منبع

BUG: remove warning

Bill Hoffman 24 سال پیش
والد
کامیت
d76db0ed57
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Source/cmGeneratedFileStream.h

+ 1 - 1
Source/cmGeneratedFileStream.h

@@ -80,7 +80,7 @@ public:
   /**
   /**
    * Allow a test for whether the file is open.
    * Allow a test for whether the file is open.
    */
    */
-  operator bool() { return static_cast<bool>(m_Stream); }
+  operator bool() { return m_Stream.good(); }
   
   
   /**
   /**
    * Close the file stream.  This will cause the copy-if-different to the
    * Close the file stream.  This will cause the copy-if-different to the