Tidy up; more/better use of BOOST_FOREACH.
[libdcp.git] / src / mxf.h
index 9f008314e8a16d53ae973722f4d4d6f924ca81c3..f8be98446f4516ba8d1166bca5be7a965a65c94b 100644 (file)
--- a/src/mxf.h
+++ b/src/mxf.h
@@ -39,7 +39,7 @@ namespace dcp
 {
 
 class MXFMetadata;
-class PictureAssetWriter;      
+class PictureAssetWriter;
 
 /** @class MXF
  *  @brief Parent for classes which represent MXF files.
@@ -52,7 +52,7 @@ public:
 
        /** @return true if the data is encrypted */
        bool encrypted () const {
-               return _key_id;
+               return static_cast<bool>(_key_id);
        }
 
        /** Set the ID of the key that is used for encryption/decryption.
@@ -85,7 +85,7 @@ public:
        MXFMetadata metadata () const {
                return _metadata;
        }
-       
+
 protected:
        template <class P, class Q>
        friend void start (PictureAssetWriter* writer, boost::shared_ptr<P> state, Standard standard, Q* mxf, uint8_t* data, int size);