aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFObjectHandle.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-06-27 18:50:35 +0200
committerJay Berkenbilt <ejb@ql.org>2022-06-27 18:50:35 +0200
commita603c1e395d039e71ca8e4c70bc43f2f9d2d604b (patch)
tree29cc9bfda3ad69f152cfce96e613a6874942c0f0 /libqpdf/QPDFObjectHandle.cc
parentc810f0f21edf7416c6e7944d6b1619e308c764c3 (diff)
downloadqpdf-a603c1e395d039e71ca8e4c70bc43f2f9d2d604b.tar.zst
Run format-code
Diffstat (limited to 'libqpdf/QPDFObjectHandle.cc')
-rw-r--r--libqpdf/QPDFObjectHandle.cc13
1 files changed, 4 insertions, 9 deletions
diff --git a/libqpdf/QPDFObjectHandle.cc b/libqpdf/QPDFObjectHandle.cc
index d39f93be..66087dd4 100644
--- a/libqpdf/QPDFObjectHandle.cc
+++ b/libqpdf/QPDFObjectHandle.cc
@@ -284,8 +284,8 @@ QPDFObjectHandle::isInitialized() const
QPDFObject::object_type_e
QPDFObjectHandle::getTypeCode()
{
- return dereference() ?
- this->obj->getTypeCode() : QPDFObject::ot_uninitialized;
+ return dereference() ? this->obj->getTypeCode()
+ : QPDFObject::ot_uninitialized;
}
char const*
@@ -407,8 +407,7 @@ QPDFObjectHandle::isArray()
bool
QPDFObjectHandle::isDictionary()
{
- return dereference() &&
- QPDFObjectTypeAccessor<QPDF_Dictionary>::check(obj);
+ return dereference() && QPDFObjectTypeAccessor<QPDF_Dictionary>::check(obj);
}
bool
@@ -2803,11 +2802,7 @@ QPDFObjectHandle::copyObject(
std::shared_ptr<QPDFObject> new_obj;
- if (isBool() ||
- isInteger() ||
- isName() ||
- isNull() ||
- isReal() ||
+ if (isBool() || isInteger() || isName() || isNull() || isReal() ||
isString()) {
new_obj = obj->shallowCopy();
} else if (isArray()) {