Update VImage8.h
VObject now has an is_null check, which is then used in VImage.
This commit is contained in:
parent
883facb1c0
commit
b0f21d2727
@ -160,6 +160,11 @@ public:
|
|||||||
return( vobject );
|
return( vobject );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool is_null() const
|
||||||
|
{
|
||||||
|
return vobject == nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
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
Block a user