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/select-context.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/select-context.cpp')
| -rw-r--r-- | src/select-context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/select-context.cpp b/src/select-context.cpp index ad50edb71..922329d7a 100644 --- a/src/select-context.cpp +++ b/src/select-context.cpp @@ -489,7 +489,7 @@ sp_select_context_root_handler(SPEventContext *event_context, GdkEvent *event) case GDK_2BUTTON_PRESS: if (event->button.button == 1) { if (!selection->isEmpty()) { - SPItem *clicked_item = (SPItem *) selection->itemList()->data; + SPItem *clicked_item = static_cast<SPItem *>(selection->itemList()->data); if (SP_IS_GROUP(clicked_item) && !SP_IS_BOX3D(clicked_item)) { // enter group if it's not a 3D box desktop->setCurrentLayer(reinterpret_cast<SPObject *>(clicked_item)); sp_desktop_selection(desktop)->clear(); |
