Hi,

On Sat, 2017-01-14 at 23:39 +0000, Mark Rogers wrote:
> 2) Change TKeyMap from std::map<PdfName,PdfObject*>
> to std::map<PdfName*,PdfObject*>

plus a comparator, to not compare pointers, but the strings.
I think it would work, at least in most cases. As the PdfName is case
sensitive, then it might be fine.

> static PdfName() 
> {
>       s_predefinedNames[ "Kids" ] = new PdfName(“Kids”);
>       s_predefinedNames[ "P" ] = new PdfName(“P”);
>     // etc
> };

One thing though, when the cache is created this way, then the `new
PdfName()`-s are leaked at the end of the application, which is not
good.
        Bye,
        zyx

-- 
http://www.litePDF.cz                                 i...@litepdf.cz

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to