diff options
author | Jay Berkenbilt <ejb@ql.org> | 2019-06-21 12:32:09 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2019-06-21 19:17:21 +0200 |
commit | 63a643a3c750c2cb6e667d5bbfc443080140832c (patch) | |
tree | 3196a85226c3cf77b9fe03b2e020351d8b95b8fc /libqpdf/QPDFObject.cc | |
parent | d71f05ca07eb5c7cfa4d6d23e5c1f2a800f52e8e (diff) | |
download | qpdf-63a643a3c750c2cb6e667d5bbfc443080140832c.tar.zst |
Remove implicit conversion from int/pointer to bool
This fixes cases of warning C4800 from msvc
Diffstat (limited to 'libqpdf/QPDFObject.cc')
-rw-r--r-- | libqpdf/QPDFObject.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libqpdf/QPDFObject.cc b/libqpdf/QPDFObject.cc index cffb8a56..ab8f1f62 100644 --- a/libqpdf/QPDFObject.cc +++ b/libqpdf/QPDFObject.cc @@ -26,11 +26,11 @@ QPDFObject::getDescription(QPDF*& qpdf, std::string& description) { qpdf = this->m->owning_qpdf; description = this->m->object_description; - return this->m->owning_qpdf; + return this->m->owning_qpdf != 0; } bool QPDFObject::hasDescription() { - return this->m->owning_qpdf; + return this->m->owning_qpdf != 0; } |