summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2014-09-13 17:51:20 +0000
committerManolo Gouy <Manolo>2014-09-13 17:51:20 +0000
commit0356bd257c9fe072be9dff143e6907e8056b320a (patch)
treeb50cf26be51981b51e4bcd662c01373474cdbac4
parent1b74551e9d9a4aedba300276b0f5ef28329af38c (diff)
Fixed compilation warning messages that Fl_PostScript_File_Device::start_job() hides an overloaded virtual function.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10308 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--FL/Fl_PostScript.H3
-rw-r--r--src/Fl_PostScript.cxx6
2 files changed, 8 insertions, 1 deletions
diff --git a/FL/Fl_PostScript.H b/FL/Fl_PostScript.H
index e679b8eaa..29b806249 100644
--- a/FL/Fl_PostScript.H
+++ b/FL/Fl_PostScript.H
@@ -224,7 +224,8 @@ public:
const char *class_name() {return class_id;};
Fl_PostScript_File_Device();
~Fl_PostScript_File_Device();
- int start_job(int pagecount, enum Fl_Paged_Device::Page_Format format = Fl_Paged_Device::A4,
+ int start_job(int pagecount, int* from, int* to);
+ int start_job(int pagecount, enum Fl_Paged_Device::Page_Format format = Fl_Paged_Device::A4,
enum Fl_Paged_Device::Page_Layout layout = Fl_Paged_Device::PORTRAIT);
int start_job(FILE *ps_output, int pagecount, enum Fl_Paged_Device::Page_Format format = Fl_Paged_Device::A4,
enum Fl_Paged_Device::Page_Layout layout = Fl_Paged_Device::PORTRAIT);
diff --git a/src/Fl_PostScript.cxx b/src/Fl_PostScript.cxx
index 9e20b4fac..6becbd990 100644
--- a/src/Fl_PostScript.cxx
+++ b/src/Fl_PostScript.cxx
@@ -133,6 +133,12 @@ int Fl_PostScript_File_Device::start_job (FILE *ps_output, int pagecount,
return 0;
}
+/** Don't use with this class. */
+int Fl_PostScript_File_Device::start_job(int pagecount, int* from, int* to)
+{
+ return 1;
+}
+
/**
@brief The destructor.
*/