Update VImage8.h

VObject now has an is_null check, which is then used in VImage.
This commit is contained in:
Fingolfin1196 2018-10-10 15:48:23 +02:00 committed by GitHub
parent 883facb1c0
commit b0f21d2727
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -160,6 +160,11 @@ public:
return( vobject );
}
bool is_null() const
{
return vobject == nullptr;
}
};
class VIPS_CPLUSPLUS_API VImage;
@ -237,6 +242,8 @@ public:
class VImage : VObject
{
public:
using VObject::is_null;
VImage( VipsImage *image, VSteal steal = STEAL ) :
VObject( (VipsObject *) image, steal )
{