diff options
| author | Jabiertxof <jtx@jtx> | 2017-03-16 22:29:49 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx> | 2017-03-16 22:29:49 +0000 |
| commit | fdd8ce77fa742072a1cea8136acaeed1dae079b5 (patch) | |
| tree | 6418cb90555b397b3c39ed8a07e5f3f0dd158a6a /src/live_effects/lpeobject.h | |
| parent | Fix rendering when canvas rotated. General code clean-up and documentation. (diff) | |
| download | inkscape-fdd8ce77fa742072a1cea8136acaeed1dae079b5.tar.gz inkscape-fdd8ce77fa742072a1cea8136acaeed1dae079b5.zip | |
Remove some compiling warns
(bzr r15599)
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 |
