aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2023-02-25 22:14:26 +0100
committerJay Berkenbilt <ejb@ql.org>2023-02-25 22:19:42 +0100
commit26606a37d3dd3a641adc7b43999938608331023d (patch)
treed68d0c0a8a3c28b8349a888bc80e822587a79dde
parenta1f10e244273e68be85625705a36104852a2ff05 (diff)
downloadqpdf-26606a37d3dd3a641adc7b43999938608331023d.tar.zst
Revert "Add QPDFObjectHandle operator bool"
This reverts commit 56c923d1096b0317d978bdadeb44e8198053286c. This commit breaks pikepdf.
-rw-r--r--include/qpdf/QPDFObjectHandle.hh10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh
index a0a91a3d..77fe680f 100644
--- a/include/qpdf/QPDFObjectHandle.hh
+++ b/include/qpdf/QPDFObjectHandle.hh
@@ -334,11 +334,6 @@ class QPDFObjectHandle
QPDF_DLL
inline bool isInitialized() const;
- // Return true if the QPDFObjectHandle is initialized. This allows object
- // handles to be used in if statements with initializer.
- QPDF_DLL
- inline operator bool() const;
-
// This method returns true if the QPDFObjectHandle objects point
// to exactly the same underlying object, meaning that changes to
// one are reflected in the other, or "if you paint one, the other
@@ -1868,11 +1863,6 @@ QPDFObjectHandle::isIndirect() const
return (obj != nullptr) && (getObjectID() != 0);
}
-inline QPDFObjectHandle::operator bool() const
-{
- return obj != nullptr;
-}
-
inline bool
QPDFObjectHandle::isInitialized() const
{