diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-03-04 18:20:11 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-03-04 18:20:11 +0100 |
commit | 365b6bf765a25e6cab087491fd2a5416499256ef (patch) | |
tree | 952665e655143a3c99a7d9fff440b0e0e67b7431 /src/Postscript.cxx | |
parent | 00b21c9ee2af7457ce9f05f80144a245d1ef0750 (diff) |
fix const related warnings reported by gcc 4.3.3 (via Kapil Hari Paranjape)
Diffstat (limited to 'src/Postscript.cxx')
-rw-r--r-- | src/Postscript.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Postscript.cxx b/src/Postscript.cxx index 70a8991..532c2ee 100644 --- a/src/Postscript.cxx +++ b/src/Postscript.cxx @@ -362,17 +362,17 @@ int PSWriter::write_text(FILE *out, PSEditText *t) { return 0; } -char * PSWriter::ps_header() { +const char * PSWriter::ps_header() { return ""; } -char * PSWriter::ps_trailer() { +const char * PSWriter::ps_trailer() { return ""; } PSLevel1Writer::PSLevel1Writer(PSEditModel *p) : PSWriter(p) {}; -char * PSLevel1Writer::ps_header() { +const char * PSLevel1Writer::ps_header() { return "/PSEditWidgetPageCount 0 def\n" "/PSEditWidgetPC 0 def\n" @@ -387,6 +387,6 @@ char * PSLevel1Writer::ps_header() { "} ifelse\n"; } -char * PSLevel1Writer::ps_trailer() { +const char * PSLevel1Writer::ps_trailer() { return "grestore PSEditWidgetshowpage} def\n"; } |