[Poppler-bugs] [Bug 79874] Compilation of Qt5 frontend fails with MinGW

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Jun 20 14:42:25 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=79874

--- Comment #9 from Hib Eris <hib at hiberis.nl> ---
(In reply to comment #7)

> >  #ifdef _WIN32
> > +		doc = new PDFDoc((wchar_t *)filePath.utf16(), filePath.length(), ownerPassword, userPassword);
> 
> I think that filePath.length() might not match the number of wchar's in
> filePath.utf16().

Hmm, on second thought, I was wrong in this remark; using QString.length() will
work fine to get the number of wchar_t returned by QString.utf16().

Thus the proposed patch looks good to me.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20140620/c9c9bb1d/attachment.html>


More information about the Poppler-bugs mailing list