27 Aug
2013
27 Aug
'13
9:08 p.m.
On 21-8-2013 8:20, Jon Cruz wrote:
The main problem we hit in this specific case (as Krzystof called out) is that our namespace is too long.
Great news!!!! C++ already addresses that.
To make code in a specific C++ source file less verbose yet still keep it legible, we can just employ an alias.
namespace qnty = Inkscape::Util::Quantity;
... p0[X] = qnty::convert(p0[X], "px", "in");
This is a great tip, I did not know this, thanks!
- Johan