Commit 26606a37d3dd3a641adc7b43999938608331023d

Authored by Jay Berkenbilt
1 parent a1f10e24

Revert "Add QPDFObjectHandle operator bool"

This reverts commit 56c923d1096b0317d978bdadeb44e8198053286c.

This commit breaks pikepdf.
include/qpdf/QPDFObjectHandle.hh
@@ -334,11 +334,6 @@ class QPDFObjectHandle @@ -334,11 +334,6 @@ class QPDFObjectHandle
334 QPDF_DLL 334 QPDF_DLL
335 inline bool isInitialized() const; 335 inline bool isInitialized() const;
336 336
337 - // Return true if the QPDFObjectHandle is initialized. This allows object  
338 - // handles to be used in if statements with initializer.  
339 - QPDF_DLL  
340 - inline operator bool() const;  
341 -  
342 // This method returns true if the QPDFObjectHandle objects point 337 // This method returns true if the QPDFObjectHandle objects point
343 // to exactly the same underlying object, meaning that changes to 338 // to exactly the same underlying object, meaning that changes to
344 // one are reflected in the other, or "if you paint one, the other 339 // one are reflected in the other, or "if you paint one, the other
@@ -1868,11 +1863,6 @@ QPDFObjectHandle::isIndirect() const @@ -1868,11 +1863,6 @@ QPDFObjectHandle::isIndirect() const
1868 return (obj != nullptr) && (getObjectID() != 0); 1863 return (obj != nullptr) && (getObjectID() != 0);
1869 } 1864 }
1870 1865
1871 -inline QPDFObjectHandle::operator bool() const  
1872 -{  
1873 - return obj != nullptr;  
1874 -}  
1875 -  
1876 inline bool 1866 inline bool
1877 QPDFObjectHandle::isInitialized() const 1867 QPDFObjectHandle::isInitialized() const
1878 { 1868 {