summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2016-04-10 13:38:23 +0200
committerMurray Cumming <murrayc@murrayc.com>2016-04-10 13:38:23 +0200
commite70ea7f26327c4a872e5f6b6b83fd3fdd26434ce (patch)
treedd75e0c61b387530d42e015c57f237a3c7921782
parentaee3a6fa6a37e1178b43437966b4225a34f9c6e2 (diff)
downloadglibmm-e70ea7f26327c4a872e5f6b6b83fd3fdd26434ce.tar.gz
FileAtrributeInfoList, Checksum, Module: Make operator bool explicit.
-rw-r--r--gio/src/fileattributeinfolist.hg2
-rw-r--r--glib/src/checksum.hg2
-rw-r--r--glib/src/module.hg2
3 files changed, 3 insertions, 3 deletions
diff --git a/gio/src/fileattributeinfolist.hg b/gio/src/fileattributeinfolist.hg
index 4f7bac7c..9f1c8020 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 84a7ba0d..26770dd5 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 2009c03f..dddb5249 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