[poppler] Printing support in poppler-qt
Jeff Muizelaar
jeff at infidigm.net
Wed May 31 23:10:12 PDT 2006
On Thu, Jun 01, 2006 at 07:11:50AM +0200, Stefan Kebekus wrote:
> On Wednesday 31 May 2006 22:03, Albert Astals Cid wrote:
> >
> > Do we really need
> >
> > + const char *of = file.latin1();
> > + char *tf = new char[strlen(of)+10];
> > + strcpy(tf, of);
> >
> > doesn't using file.latin1() work?
>
> The trouble is, file.latin1() returns a "const char *", but the method we're
> calling takes a "char *".
>
It would be better to change the PSOutputDev to take a const char *.
Also why the +10?
-Jeff
More information about the poppler
mailing list