summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/OutputImage.H10
-rw-r--r--src/OutputImage.cxx25
2 files changed, 5 insertions, 30 deletions
diff --git a/src/OutputImage.H b/src/OutputImage.H
index 17955b9..edbb637 100644
--- a/src/OutputImage.H
+++ b/src/OutputImage.H
@@ -15,7 +15,7 @@ class OutputImage {
public:
OutputImage();
- virtual ~OutputImage();
+ virtual ~OutputImage() {};
virtual int init(int w1, int h1);
@@ -28,13 +28,13 @@ class OutputImage {
protected:
int W, H, line;
- virtual int init_internal(int w1, int h1);
+ virtual int init_internal(int w1, int h1) {return 0;};
- virtual int set_pixel_internal(int x, int r, int g, int b);
+ virtual int set_pixel_internal(int x, int r, int g, int b) {return 0;};
- virtual int next_line_internal();
+ virtual int next_line_internal() {return 0;};
- virtual int done_internal();
+ virtual int done_internal() {return 0;};
};
#endif
diff --git a/src/OutputImage.cxx b/src/OutputImage.cxx
index f981f18..d1c2f43 100644
--- a/src/OutputImage.cxx
+++ b/src/OutputImage.cxx
@@ -15,9 +15,6 @@ OutputImage::OutputImage() {
initialized = 0;
}
-OutputImage::~OutputImage() {
-}
-
int
OutputImage::init(int w1, int h1) {
W = w1;
@@ -28,12 +25,6 @@ OutputImage::init(int w1, int h1) {
return init_internal(w1, h1);
}
-
-int
-OutputImage::init_internal(int w1, int h1) {
- return 0;
-}
-
int
OutputImage::set_pixel(int x, int r, int g, int b) {
if (!initialized || x < 0 || x >= W) {
@@ -44,11 +35,6 @@ OutputImage::set_pixel(int x, int r, int g, int b) {
}
int
-OutputImage::set_pixel_internal(int x, int r, int g, int b) {
- return 0;
-}
-
-int
OutputImage::next_line() {
if (!initialized || line++ >= H) {
return 1;
@@ -58,11 +44,6 @@ OutputImage::next_line() {
}
int
-OutputImage::next_line_internal() {
- return 0;
-}
-
-int
OutputImage::done() {
if (!initialized) {
return 1;
@@ -71,9 +52,3 @@ OutputImage::done() {
return done_internal();
}
}
-
-int
-OutputImage::done_internal() {
- return 0;
-}
-