• Albert Astals Cid's avatar
    New Object API · 9773c153
    Albert Astals Cid authored
    Implement the move operators and copy construtor
    Almost all the init() functions are gone and we just have simple
    constructors now
    Also made free() public since you're not supposed to call it anymore,
    unless you're being evil and malloc'ing Objects like Array/Dict/XRef
    This has a huge reaction chain, most importantly we
    don't get objects by passing a pointer Object parameter, we
    just get the object as a return value, which is a much clearer API
     -  aobj->copy(&obj);
     +  obj = aobj->copy();
    before I was never sure what was being copied into what
    Comes with a huge diff, I probably made some mistake in the porting
    since there was lots of copy & paste involved
CairoOutputDev.cc 99.1 KB