Merge pull request #1133 from Fingolfin1196/master

Add is_null check to VImage
This commit is contained in:
John Cupitt 2018-10-10 15:12:10 +01:00 committed by GitHub
commit 67740c5d37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -160,6 +160,11 @@ public:
return( vobject );
}
bool is_null() const
{
return vobject == 0;
}
};
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 )
{