[glibmm] FileAtrributeInfoList, Checksum, Module: Make operator bool explicit.



commit e70ea7f26327c4a872e5f6b6b83fd3fdd26434ce
Author: Murray Cumming <murrayc murrayc com>
Date:   Sun Apr 10 13:38:23 2016 +0200

    FileAtrributeInfoList, Checksum, Module: Make operator bool explicit.

 gio/src/fileattributeinfolist.hg |    2 +-
 glib/src/checksum.hg             |    2 +-
 glib/src/module.hg               |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gio/src/fileattributeinfolist.hg b/gio/src/fileattributeinfolist.hg
index 4f7bac7..9f1c802 100644
--- a/gio/src/fileattributeinfolist.hg
+++ b/gio/src/fileattributeinfolist.hg
@@ -57,7 +57,7 @@ public:
   /** Whether the FileAttributeInfoList is valid and non empty.
    * @result true if this FileAttributeInfoList is not empty.
    */
-  operator bool() const;
+  explicit operator bool() const;
 
   /** Whether the FileAttributeInfoList is empty or invalid.
    * @result true if this FileAttributeInfoList is empty.
diff --git a/glib/src/checksum.hg b/glib/src/checksum.hg
index 84a7ba0..26770dd 100644
--- a/glib/src/checksum.hg
+++ b/glib/src/checksum.hg
@@ -57,7 +57,7 @@ public:
   /** Returns true if the Checksum object is valid.
    * This will return false, for instance, if an unsupported checksum type was provided to the constructor.
    */
-  operator bool() const;
+  explicit operator bool() const;
 
   _WRAP_METHOD(void reset(), g_checksum_reset)
 
diff --git a/glib/src/module.hg b/glib/src/module.hg
index 2009c03..dddb524 100644
--- a/glib/src/module.hg
+++ b/glib/src/module.hg
@@ -84,7 +84,7 @@ public:
 
   /** Check whether the module was found.
    */
-  operator bool() const;
+  explicit operator bool() const;
 
   /** Checks if modules are supported on the current platform.
    * @returns true if available, false otherwise


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]