Hi there,

I removed those c++11 parts now and went on with c++ifying the SPEventContexts. These were even easier to convert, I should have started with them…

As far as I can tell, Inkscape did not get any slower and memory consumption even decreased a bit. At least that’s what

/usr/bin/time -v inkscape -z share/examples/car.svgz -e car.png

says.

 

Btw, I found a little mistake in the source code:

src/widgets/sp-attribute-widget.cpp:262:15: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]

    if (flags && SP_OBJECT_MODIFIED_FLAG)

              ^  ~~~~~~~~~~~~~~~~~~~~~~~

src/widgets/sp-attribute-widget.cpp:262:15: note: use '&' for a bitwise operation

    if (flags && SP_OBJECT_MODIFIED_FLAG)

              ^~

              &

src/widgets/sp-attribute-widget.cpp:262:15: note: remove constant to silence this warning

    if (flags && SP_OBJECT_MODIFIED_FLAG)

             ~^~~~~~~~~~~~~~~~~~~~~~~~~~

 

Maybe one of you can correct that as I don’t have write access…

 

Markus