diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-05-09 17:06:59 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-05-09 17:06:59 +0000 |
| commit | b5fbebdee9ad52de4b9b373998d91581b9fd9004 (patch) | |
| tree | 31f6f2cdab11f3276ef6abad0775e8b6888e1d33 /src/display/curve.cpp | |
| parent | Apply Sas' patch to improve import of SVG as in LP#227472 and the bugs mentio... (diff) | |
| download | inkscape-b5fbebdee9ad52de4b9b373998d91581b9fd9004.tar.gz inkscape-b5fbebdee9ad52de4b9b373998d91581b9fd9004.zip | |
complete adding const to have only NArtBpath const * get_bpath() const; for accessing the protected member of SPCurve. Nowhere in Inkscape source is the path data changed of SPCurve, except within SPCurve's own methods ! So removed the non-const NArtBpath* get_bpath.
(bzr r5642)
Diffstat (limited to 'src/display/curve.cpp')
| -rw-r--r-- | src/display/curve.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/display/curve.cpp b/src/display/curve.cpp index 5b2ac024b..489553dac 100644 --- a/src/display/curve.cpp +++ b/src/display/curve.cpp @@ -150,11 +150,13 @@ SPCurve::get_bpath() const { return _bpath; }; +/* NArtBpath * SPCurve::get_bpath() { return _bpath; }; +*/ /** * Increase _refcount of curve. @@ -273,7 +275,7 @@ SPCurve::split() const { g_return_val_if_fail(this != NULL, NULL); - gint p = 0; + guint p = 0; GSList *l = NULL; while (p < _end) { @@ -304,7 +306,7 @@ tmpl_curve_transform(SPCurve *const curve, M const &m) { g_return_if_fail(curve != NULL); - for (gint i = 0; i < curve->_end; i++) { + for (guint i = 0; i < curve->_end; i++) { NArtBpath *p = curve->_bpath + i; switch (p->code) { case NR_MOVETO: |
