summaryrefslogtreecommitdiffstats
path: root/src/desktop-style.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <mc@localhost.localdomain>2015-02-27 03:21:48 +0000
committerMarc Jeanmougin <mc@localhost.localdomain>2015-02-27 03:21:48 +0000
commit9bdc157f705ca61516e599cb416580283d21ec35 (patch)
tree59cc0dbb46445c8741913922bf7d983f35d5c11d /src/desktop-style.cpp
parentcorrected the casts (hopefully) (diff)
downloadinkscape-9bdc157f705ca61516e599cb416580283d21ec35.tar.gz
inkscape-9bdc157f705ca61516e599cb416580283d21ec35.zip
more cast cleanup
(bzr r13922.1.11)
Diffstat (limited to 'src/desktop-style.cpp')
-rw-r--r--src/desktop-style.cpp29
1 files changed, 14 insertions, 15 deletions
diff --git a/src/desktop-style.cpp b/src/desktop-style.cpp
index 82f66dcdf..afdc3064a 100644
--- a/src/desktop-style.cpp
+++ b/src/desktop-style.cpp
@@ -197,7 +197,7 @@ sp_desktop_set_style(SPDesktop *desktop, SPCSSAttr *css, bool change, bool write
std::vector<SPItem*> const itemlist = desktop->selection->itemList();
for (std::vector<SPItem*>::const_iterator i = itemlist.begin(); i!= itemlist.end(); i++) {
/* last used styles for 3D box faces are stored separately */
- SPObject *obj = reinterpret_cast<SPObject *>(*i);
+ SPObject *obj = *i;
Box3DSide *side = dynamic_cast<Box3DSide *>(obj);
if (side) {
const char * descr = box3d_side_axes_string(side);
@@ -448,7 +448,6 @@ stroke_average_width (const std::vector<SPItem*> &objects)
bool notstroked = true;
int n_notstroked = 0;
for (std::vector<SPItem*>::const_iterator i = objects.begin(); i != objects.end(); i++) {
- SPObject *obj = reinterpret_cast<SPObject *>(*i);
SPItem *item = *i;
if (!item) {
continue;
@@ -515,7 +514,7 @@ objects_query_fillstroke (const std::vector<SPItem*> &objects, SPStyle *style_re
bool same_color = true;
for (std::vector<SPItem*>::const_iterator i = objects.begin(); i!= objects.end(); i++) {
- SPObject *obj = reinterpret_cast<SPObject *>(*i);
+ SPObject *obj = *i;
if (!obj) {
continue;
}
@@ -699,7 +698,7 @@ objects_query_opacity (const std::vector<SPItem*> &objects, SPStyle *style_res)
for (std::vector<SPItem*>::const_iterator i = objects.begin(); i != objects.end(); i++) {
- SPObject *obj = reinterpret_cast<SPObject *>(*i);
+ SPObject *obj = *i;
if (!obj) {
continue;
}
@@ -755,7 +754,7 @@ objects_query_strokewidth (const std::vector<SPItem*> &objects, SPStyle *style_r
int n_stroked = 0;
for (std::vector<SPItem*>::const_iterator i = objects.begin(); i != objects.end(); i++) {
- SPObject *obj = reinterpret_cast<SPObject *>(*i);
+ SPObject *obj = *i;
if (!obj) {
continue;
}
@@ -829,7 +828,7 @@ objects_query_miterlimit (const std::vector<SPItem*> &objects, SPStyle *style_re
bool same_ml = true;
for (std::vector<SPItem*>::const_iterator i = objects.begin(); i != objects.end(); i++) {
- SPObject *obj = reinterpret_cast<SPObject *>(*i);
+ SPObject *obj = *i;
if (!dynamic_cast<SPItem *>(obj)) {
continue;
}
@@ -888,7 +887,7 @@ objects_query_strokecap (const std::vector<SPItem*> &objects, SPStyle *style_res
int n_stroked = 0;
for (std::vector<SPItem*>::const_iterator i = objects.begin(); i != objects.end(); i++) {
- SPObject *obj = reinterpret_cast<SPObject *>(*i);
+ SPObject *obj = *i;
if (!dynamic_cast<SPItem *>(obj)) {
continue;
}
@@ -942,7 +941,7 @@ objects_query_strokejoin (const std::vector<SPItem*> &objects, SPStyle *style_re
int n_stroked = 0;
for (std::vector<SPItem*>::const_iterator i = objects.begin(); i != objects.end(); i++) {
- SPObject *obj = reinterpret_cast<SPObject *>(*i);
+ SPObject *obj = *i;
if (!dynamic_cast<SPItem *>(obj)) {
continue;
}
@@ -1005,7 +1004,7 @@ objects_query_fontnumbers (const std::vector<SPItem*> &objects, SPStyle *style_r
int no_size = 0;
for (std::vector<SPItem*>::const_iterator i = objects.begin(); i != objects.end(); i++) {
- SPObject *obj = reinterpret_cast<SPObject *>(*i);
+ SPObject *obj = *i;
if (!isTextualItem(obj)) {
continue;
@@ -1124,7 +1123,7 @@ objects_query_fontstyle (const std::vector<SPItem*> &objects, SPStyle *style_res
int texts = 0;
for (std::vector<SPItem*>::const_iterator i = objects.begin(); i != objects.end(); i++) {
- SPObject *obj = reinterpret_cast<SPObject *>(*i);
+ SPObject *obj = *i;
if (!isTextualItem(obj)) {
continue;
@@ -1193,7 +1192,7 @@ objects_query_baselines (const std::vector<SPItem*> &objects, SPStyle *style_res
int texts = 0;
for (std::vector<SPItem*>::const_iterator i = objects.begin(); i != objects.end(); i++) {
- SPObject *obj = reinterpret_cast<SPObject *>(*i);
+ SPObject *obj = *i;
if (!isTextualItem(obj)) {
continue;
@@ -1281,7 +1280,7 @@ objects_query_fontfamily (const std::vector<SPItem*> &objects, SPStyle *style_re
style_res->font_family.set = FALSE;
for (std::vector<SPItem*>::const_iterator i = objects.begin(); i != objects.end(); i++) {
- SPObject *obj = reinterpret_cast<SPObject *>(*i);
+ SPObject *obj = *i;
// std::cout << " " << reinterpret_cast<SPObject*>(i->data)->getId() << std::endl;
if (!isTextualItem(obj)) {
@@ -1337,7 +1336,7 @@ objects_query_fontspecification (const std::vector<SPItem*> &objects, SPStyle *s
style_res->font_specification.set = FALSE;
for (std::vector<SPItem*>::const_iterator i = objects.begin(); i != objects.end(); i++) {
- SPObject *obj = reinterpret_cast<SPObject *>(*i);
+ SPObject *obj = *i;
// std::cout << " " << reinterpret_cast<SPObject*>(i->data)->getId() << std::endl;
if (!isTextualItem(obj)) {
@@ -1395,7 +1394,7 @@ objects_query_blend (const std::vector<SPItem*> &objects, SPStyle *style_res)
guint items = 0;
for (std::vector<SPItem*>::const_iterator i = objects.begin(); i != objects.end(); i++) {
- SPObject *obj = reinterpret_cast<SPObject *>(*i);
+ SPObject *obj = *i;
if (!obj) {
continue;
}
@@ -1485,7 +1484,7 @@ objects_query_blur (const std::vector<SPItem*> &objects, SPStyle *style_res)
guint items = 0;
for (std::vector<SPItem*>::const_iterator i = objects.begin(); i != objects.end(); i++) {
- SPObject *obj = reinterpret_cast<SPObject *>(*i);
+ SPObject *obj = *i;
if (!obj) {
continue;
}