diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-03-02 00:18:52 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-03-02 00:18:52 +0100 |
commit | 7b0e9feee71bf739331d5bd6a4d7a73d163c7370 (patch) | |
tree | 7031c8e330993d350e9610dbbd844c1efa064e37 /src/ring.h | |
parent | 800bbd8a13ccee0a82b61a47a04b01d1b2b68976 (diff) | |
download | sciteco-7b0e9feee71bf739331d5bd6a4d7a73d163c7370.tar.gz |
minor optimization: no need to check for NULL when using C++ delete operator
Diffstat (limited to 'src/ring.h')
-rw-r--r-- | src/ring.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -143,8 +143,7 @@ extern class Ring { : UndoToken(), ring(_ring), buffer(_buffer) {} ~UndoTokenEdit() { - if (buffer) - delete buffer; + delete buffer; } void run(void); |