Commit 26606a37d3dd3a641adc7b43999938608331023d
1 parent
a1f10e24
Revert "Add QPDFObjectHandle operator bool"
This reverts commit 56c923d1096b0317d978bdadeb44e8198053286c. This commit breaks pikepdf.
Showing
1 changed file
with
0 additions
and
10 deletions
include/qpdf/QPDFObjectHandle.hh
| ... | ... | @@ -334,11 +334,6 @@ class QPDFObjectHandle |
| 334 | 334 | QPDF_DLL |
| 335 | 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 | 337 | // This method returns true if the QPDFObjectHandle objects point |
| 343 | 338 | // to exactly the same underlying object, meaning that changes to |
| 344 | 339 | // one are reflected in the other, or "if you paint one, the other |
| ... | ... | @@ -1868,11 +1863,6 @@ QPDFObjectHandle::isIndirect() const |
| 1868 | 1863 | return (obj != nullptr) && (getObjectID() != 0); |
| 1869 | 1864 | } |
| 1870 | 1865 | |
| 1871 | -inline QPDFObjectHandle::operator bool() const | |
| 1872 | -{ | |
| 1873 | - return obj != nullptr; | |
| 1874 | -} | |
| 1875 | - | |
| 1876 | 1866 | inline bool |
| 1877 | 1867 | QPDFObjectHandle::isInitialized() const |
| 1878 | 1868 | { | ... | ... |