Merge pull request #1133 from Fingolfin1196/master
Add is_null check to VImage
This commit is contained in:
commit
67740c5d37
|
@ -160,6 +160,11 @@ public:
|
||||||
return( vobject );
|
return( vobject );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool is_null() const
|
||||||
|
{
|
||||||
|
return vobject == 0;
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class VIPS_CPLUSPLUS_API VImage;
|
class VIPS_CPLUSPLUS_API VImage;
|
||||||
|
@ -237,6 +242,8 @@ public:
|
||||||
class VImage : VObject
|
class VImage : VObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
using VObject::is_null;
|
||||||
|
|
||||||
VImage( VipsImage *image, VSteal steal = STEAL ) :
|
VImage( VipsImage *image, VSteal steal = STEAL ) :
|
||||||
VObject( (VipsObject *) image, steal )
|
VObject( (VipsObject *) image, steal )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue