summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-10-11 07:08:26 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-10-11 07:08:26 +0200
commit35c1983bf127baa43fcc7bf165f86817125a2923 (patch)
treed00fcd77b6d8d562e9d0e842a9f7074638b94f63
parent298642b480fd7967193df2813109a7f6fede31a9 (diff)
options/connector: bundle can't be null at all here
It's a shared_ptr<detail::bundle> stored in base_value.
-rw-r--r--options/connector.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/options/connector.cpp b/options/connector.cpp
index 8fa59889..242c07da 100644
--- a/options/connector.cpp
+++ b/options/connector.cpp
@@ -71,7 +71,7 @@ void connector::on_value_destructed(const QString& name, const base_value* val)
if (!ok)
qWarning() << "options/connector: value destructed without creating;"
<< "bundle"
- << (val && val->b ? val->b->name() : "<NULL>")
+ << val->b->name()
<< "value-name" << name
<< "value-ptr" << quintptr(val);
}
@@ -87,7 +87,7 @@ void connector::on_value_created(const QString& name, const base_value* val)
{
qWarning() << "options/connector: value created twice;"
<< "bundle"
- << (val->b ? val->b->name() : "<NULL>")
+ << val->b->name()
<< "value-name" << name
<< "value-ptr" << quintptr(val);
}