diff options
Diffstat (limited to 'src/live_effects/lpeobject.h')
| -rw-r--r-- | src/live_effects/lpeobject.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/live_effects/lpeobject.h b/src/live_effects/lpeobject.h index 087223947..e468b4080 100644 --- a/src/live_effects/lpeobject.h +++ b/src/live_effects/lpeobject.h @@ -39,12 +39,10 @@ public: /* Note that the returned pointer can be NULL in a valid LivePathEffectObject contained in a valid list of lpeobjects in an lpeitem! * So one should always check whether the returned value is NULL or not */ Inkscape::LivePathEffect::Effect * get_lpe() { - if(this) return lpe; - else return NULL; + return lpe; } Inkscape::LivePathEffect::Effect const * get_lpe() const { - if(this) return lpe; - else return NULL; + return lpe; }; Inkscape::LivePathEffect::Effect *lpe; // this can be NULL in a valid LivePathEffectObject |
