summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-26 11:40:02 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-26 11:40:02 +0100
commit5961f1d6cb0e3c66230b12d3833dfedf454dc938 (patch)
tree06765fa9e8743b25d4d60380a9f5c26a8c3aa4f6
parent52af988a192237ce079f65d8c0aa90b747489ee3 (diff)
cleanup
-rw-r--r--src/Stitch.cxx10
-rw-r--r--src/choose_hill.cxx2
2 files changed, 5 insertions, 7 deletions
diff --git a/src/Stitch.cxx b/src/Stitch.cxx
index a83e9c8..e69a28e 100644
--- a/src/Stitch.cxx
+++ b/src/Stitch.cxx
@@ -31,13 +31,11 @@ Stitch::Stitch() {
}
Stitch::~Stitch() {
- for (int i=0; i<MAX_PICS; i++) {
- if (gipf[i]) {
- delete(gipf[i]);
- } else {
+ for (int i=0; i<MAX_PICS; i++)
+ if (gipf[i])
+ delete gipf[i];
+ else
break;
- }
- }
}
int
diff --git a/src/choose_hill.cxx b/src/choose_hill.cxx
index 542e5b6..9887f59 100644
--- a/src/choose_hill.cxx
+++ b/src/choose_hill.cxx
@@ -33,7 +33,7 @@ choose_hill(const Hills *hills, const char *l) {
Fl::wait();
ret = (Hill*) sc->data();
- delete(sc);
+ delete sc;
return ret;
}