diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2012-02-25 06:48:54 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2012-02-25 06:48:54 +0000 |
| commit | 235e0557710fbd010aeb0db31ab719cc142885ae (patch) | |
| tree | f847bf164cd6d5e9a6dedc96d39406fc0b428c83 /src/sp-spiral.cpp | |
| parent | avoid some Shape calculations that are not relevant to visual bbox (Bug 906952) (diff) | |
| download | inkscape-235e0557710fbd010aeb0db31ab719cc142885ae.tar.gz inkscape-235e0557710fbd010aeb0db31ab719cc142885ae.zip | |
(cppcheck and janitorial tasks:) C-style casting to C++-style casting
(bzr r11011)
Diffstat (limited to 'src/sp-spiral.cpp')
| -rw-r--r-- | src/sp-spiral.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sp-spiral.cpp b/src/sp-spiral.cpp index 63d7a2616..fd2672388 100644 --- a/src/sp-spiral.cpp +++ b/src/sp-spiral.cpp @@ -283,7 +283,7 @@ static void sp_spiral_update(SPObject *object, SPCtx *ctx, guint flags) static void sp_spiral_update_patheffect(SPLPEItem *lpeitem, bool write) { - SPShape *shape = (SPShape *) lpeitem; + SPShape *shape = static_cast<SPShape *>(lpeitem); sp_spiral_set_shape(shape); if (write) { @@ -497,7 +497,7 @@ sp_spiral_position_set (SPSpiral *spiral, spiral->arg = arg; spiral->t0 = CLAMP(t0, 0.0, 0.999); - ((SPObject *)spiral)->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG); + (static_cast<SPObject *>(spiral))->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG); } /** @@ -510,8 +510,8 @@ static void sp_spiral_snappoints(SPItem const *item, std::vector<Inkscape::SnapC Inkscape::SnapPreferences local_snapprefs = *snapprefs; local_snapprefs.setTargetSnappable(Inkscape::SNAPTARGET_OBJECT_MIDPOINT, false); - if (((SPItemClass *) parent_class)->snappoints) { - ((SPItemClass *) parent_class)->snappoints (item, p, &local_snapprefs); + if ((reinterpret_cast<SPItemClass *>(parent_class))->snappoints) { + (reinterpret_cast<SPItemClass *>(parent_class))->snappoints (item, p, &local_snapprefs); } if (snapprefs->isTargetSnappable(Inkscape::SNAPTARGET_OBJECT_MIDPOINT)) { |
