forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.0' into 4.1
Change-Id: Ice4824c6148c8b960f9a61c6685387727627b38d
This commit is contained in:
@@ -195,7 +195,7 @@ public:
|
||||
void operator=(Runnable other) { d = std::move(other.d); }
|
||||
|
||||
template <class T> bool is() const {
|
||||
return d.get()->typeId() == T::staticTypeId;
|
||||
return d.get() && (d.get()->typeId() == T::staticTypeId);
|
||||
}
|
||||
|
||||
template <class T> const T &as() const {
|
||||
@@ -235,7 +235,7 @@ public:
|
||||
void operator=(Connection other) { d = std::move(other.d); }
|
||||
|
||||
template <class T> bool is() const {
|
||||
return d.get()->typeId() == T::staticTypeId;
|
||||
return d.get() && (d.get()->typeId() == T::staticTypeId);
|
||||
}
|
||||
|
||||
template <class T> const T &as() const {
|
||||
|
Reference in New Issue
Block a user