diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2012-02-05 17:53:23 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2012-02-05 17:53:23 +0000 |
| commit | 8cce83306c222e2953ce0480af21ccbd6365fda9 (patch) | |
| tree | 05682318e2f6510141d6f1a2ef6d0ac85e00df16 /src/selcue.cpp | |
| parent | (cppcheck and janitorial tasks:) C-style casting to C++-style casting (diff) | |
| download | inkscape-8cce83306c222e2953ce0480af21ccbd6365fda9.tar.gz inkscape-8cce83306c222e2953ce0480af21ccbd6365fda9.zip | |
(cppcheck and janitorial tasks:) C-style casting to C++-style casting
(bzr r10939)
Diffstat (limited to 'src/selcue.cpp')
| -rw-r--r-- | src/selcue.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/selcue.cpp b/src/selcue.cpp index 676031802..9a2d105ae 100644 --- a/src/selcue.cpp +++ b/src/selcue.cpp @@ -77,7 +77,7 @@ void Inkscape::SelCue::_updateItemBboxes() int bcount = 0; for (GSList const *l = _selection->itemList(); l != NULL; l = l->next) { - SPItem *item = (SPItem *) l->data; + SPItem *item = static_cast<SPItem *>(l->data); SPCanvasItem* box = _item_bboxes[bcount ++]; if (box) { @@ -119,7 +119,7 @@ void Inkscape::SelCue::_newItemBboxes() int prefs_bbox = prefs->getBool("/tools/bounding_box"); for (GSList const *l = _selection->itemList(); l != NULL; l = l->next) { - SPItem *item = (SPItem *) l->data; + SPItem *item = static_cast<SPItem *>(l->data); Geom::OptRect const b = (prefs_bbox == 0) ? item->desktopVisualBounds() : item->desktopGeometricBounds(); @@ -172,7 +172,7 @@ void Inkscape::SelCue::_newTextBaselines() _text_baselines.clear(); for (GSList const *l = _selection->itemList(); l != NULL; l = l->next) { - SPItem *item = (SPItem *) l->data; + SPItem *item = static_cast<SPItem *>(l->data); SPCanvasItem* baseline_point = NULL; if (SP_IS_TEXT(item) || SP_IS_FLOWTEXT(item)) { // visualize baseline |
