diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/uscxml/Interpreter.h | 2 | ||||
-rw-r--r-- | src/uscxml/URL.h | 2 | ||||
-rw-r--r-- | src/uscxml/messages/Blob.h | 2 | ||||
-rw-r--r-- | src/uscxml/plugins/DataModel.h | 2 | ||||
-rw-r--r-- | src/uscxml/plugins/ExecutableContent.h | 2 | ||||
-rw-r--r-- | src/uscxml/plugins/IOProcessor.h | 2 | ||||
-rw-r--r-- | src/uscxml/plugins/Invoker.h | 2 | ||||
-rw-r--r-- | src/uscxml/plugins/datamodel/ecmascript/TypedArray.cpp | 2 | ||||
-rw-r--r-- | src/uscxml/transform/Transformer.h | 2 |
9 files changed, 9 insertions, 9 deletions
diff --git a/src/uscxml/Interpreter.h b/src/uscxml/Interpreter.h index f27d93e..c65c8f7 100644 --- a/src/uscxml/Interpreter.h +++ b/src/uscxml/Interpreter.h @@ -561,7 +561,7 @@ public: virtual ~Interpreter() {}; operator bool() const { - return (_impl && _impl->_state != USCXML_DESTROYED); + return (!!_impl && _impl->_state != USCXML_DESTROYED); } bool operator< (const Interpreter& other) const { return _impl < other._impl; diff --git a/src/uscxml/URL.h b/src/uscxml/URL.h index 1da2e7f..dacf0db 100644 --- a/src/uscxml/URL.h +++ b/src/uscxml/URL.h @@ -161,7 +161,7 @@ public: virtual ~URL() {}; operator bool() const { - return _impl; + return !!_impl; } bool operator< (const URL& other) const { return _impl < other._impl; diff --git a/src/uscxml/messages/Blob.h b/src/uscxml/messages/Blob.h index 0c20f95..835c73a 100644 --- a/src/uscxml/messages/Blob.h +++ b/src/uscxml/messages/Blob.h @@ -77,7 +77,7 @@ public: virtual ~Blob() {}; operator bool() const { - return _impl; + return !!_impl; } bool operator< (const Blob& other) const { return _impl < other._impl; diff --git a/src/uscxml/plugins/DataModel.h b/src/uscxml/plugins/DataModel.h index 1a64d28..5cbd0c8 100644 --- a/src/uscxml/plugins/DataModel.h +++ b/src/uscxml/plugins/DataModel.h @@ -139,7 +139,7 @@ public: virtual ~DataModel() {}; operator bool() const { - return _impl; + return !!_impl; } bool operator< (const DataModel& other) const { return _impl < other._impl; diff --git a/src/uscxml/plugins/ExecutableContent.h b/src/uscxml/plugins/ExecutableContent.h index 6916b5f..6df197c 100644 --- a/src/uscxml/plugins/ExecutableContent.h +++ b/src/uscxml/plugins/ExecutableContent.h @@ -60,7 +60,7 @@ public: virtual ~ExecutableContent() {}; operator bool() const { - return _impl; + return !!_impl; } bool operator< (const ExecutableContent& other) const { return _impl < other._impl; diff --git a/src/uscxml/plugins/IOProcessor.h b/src/uscxml/plugins/IOProcessor.h index 79f759b..c770719 100644 --- a/src/uscxml/plugins/IOProcessor.h +++ b/src/uscxml/plugins/IOProcessor.h @@ -42,7 +42,7 @@ public: virtual ~IOProcessor() {}; operator bool() const { - return _impl; + return !!_impl; } bool operator< (const IOProcessor& other) const { return _impl < other._impl; diff --git a/src/uscxml/plugins/Invoker.h b/src/uscxml/plugins/Invoker.h index dd3d66d..b9b767b 100644 --- a/src/uscxml/plugins/Invoker.h +++ b/src/uscxml/plugins/Invoker.h @@ -50,7 +50,7 @@ public: virtual ~Invoker() {}; operator bool() const { - return _impl; + return !!_impl; } bool operator< (const Invoker& other) const { return _impl < other._impl; diff --git a/src/uscxml/plugins/datamodel/ecmascript/TypedArray.cpp b/src/uscxml/plugins/datamodel/ecmascript/TypedArray.cpp index 913d2ce..c8b73cf 100644 --- a/src/uscxml/plugins/datamodel/ecmascript/TypedArray.cpp +++ b/src/uscxml/plugins/datamodel/ecmascript/TypedArray.cpp @@ -75,7 +75,7 @@ bool ArrayBuffer::isView(void*) { } ArrayBuffer::operator bool() { - return _blob; + return !!_blob; } ArrayBuffer ArrayBufferView::getBuffer() { diff --git a/src/uscxml/transform/Transformer.h b/src/uscxml/transform/Transformer.h index 3751c00..c8498ff 100644 --- a/src/uscxml/transform/Transformer.h +++ b/src/uscxml/transform/Transformer.h @@ -52,7 +52,7 @@ public: virtual ~Transformer() {}; operator bool() const { - return (_impl); + return !!_impl; } bool operator< (const Transformer& other) const { return _impl < other._impl; |