summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Radomski <sradomski@mintwerk.de>2016-03-07 10:10:56 (GMT)
committerStefan Radomski <sradomski@mintwerk.de>2016-03-07 10:10:56 (GMT)
commit540cd05d3656ead7ac1e16b1ac2426cc2d1df252 (patch)
tree6743dcd4ec7ae0b4c43335087fb9f64f7c0c84a3 /src
parentde8dfa2bc37e88117457342cf3c3ce7c1b7320ae (diff)
downloaduscxml-540cd05d3656ead7ac1e16b1ac2426cc2d1df252.zip
uscxml-540cd05d3656ead7ac1e16b1ac2426cc2d1df252.tar.gz
uscxml-540cd05d3656ead7ac1e16b1ac2426cc2d1df252.tar.bz2
Some more preparations for current V8 API
Diffstat (limited to 'src')
-rw-r--r--src/uscxml/Interpreter.h2
-rw-r--r--src/uscxml/URL.h2
-rw-r--r--src/uscxml/messages/Blob.h2
-rw-r--r--src/uscxml/plugins/DataModel.h2
-rw-r--r--src/uscxml/plugins/ExecutableContent.h2
-rw-r--r--src/uscxml/plugins/IOProcessor.h2
-rw-r--r--src/uscxml/plugins/Invoker.h2
-rw-r--r--src/uscxml/plugins/datamodel/ecmascript/TypedArray.cpp2
-rw-r--r--src/uscxml/transform/Transformer.h2
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;