diff options
Diffstat (limited to 'src/sp-object.h')
| -rw-r--r-- | src/sp-object.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sp-object.h b/src/sp-object.h index e853de097..4879e5bea 100644 --- a/src/sp-object.h +++ b/src/sp-object.h @@ -287,6 +287,10 @@ struct SPObject : public GObject { } } + /** @brief Check if object is referenced by any other object. + */ + bool isReferenced() { return ( _total_hrefcount > 0 ); } + /** @brief Deletes an object. * * Detaches the object's repr, and optionally sends notification that the object has been |
