=== modified file 'src/2geom/interval.h'
|
|
|
238 | 238 | /** |
239 | 239 | * Check whether this OptInterval is empty or not. |
240 | 240 | */ |
241 | | inline bool isEmpty() { return (*this == false); }; |
| 241 | //inline bool isEmpty() { return (*this); }; |
242 | 242 | |
243 | 243 | /** |
244 | 244 | * If \c this is empty, copy argument \c a. Otherwise, union with it (and do nothing when \c a is empty) |
=== modified file 'src/2geom/rect.h'
|
|
|
215 | 215 | /** |
216 | 216 | * Check whether this OptRect is empty or not. |
217 | 217 | */ |
218 | | inline bool isEmpty() const { return (*this == false); }; |
| 218 | inline bool isEmpty() const { return (*this); }; |
219 | 219 | |
220 | 220 | /** |
221 | 221 | * If \c this is empty, copy argument \c b. Otherwise, union with it (and do nothing when \c b is empty) |
=== modified file 'src/color-profile.cpp'
|
|
|
10 | 10 | #include <glib/gi18n.h> |
11 | 11 | |
12 | 12 | #ifdef DEBUG_LCMS |
13 | | #include <gtk.h> |
| 13 | #include <gtk/gtk.h> |
14 | 14 | #endif // DEBUG_LCMS |
15 | 15 | |
16 | 16 | #include <cstring> |
=== modified file 'src/connector-context.cpp'
|
|
|
1287 | 1287 | if (found) { |
1288 | 1288 | if (cc->clickedhandle == cc->endpt_handle[0]) { |
1289 | 1289 | sp_object_setAttribute(cc->clickeditem, |
1290 | | "inkscape:connection-start", shape_label, false); |
| 1290 | "inkscape:connection-start", shape_label, NULL); |
1291 | 1291 | sp_object_setAttribute(cc->clickeditem, |
1292 | | "inkscape:connection-start-point", cpid, false); |
| 1292 | "inkscape:connection-start-point", cpid, NULL); |
1293 | 1293 | } |
1294 | 1294 | else { |
1295 | 1295 | sp_object_setAttribute(cc->clickeditem, |
1296 | | "inkscape:connection-end", shape_label, false); |
| 1296 | "inkscape:connection-end", shape_label, NULL); |
1297 | 1297 | sp_object_setAttribute(cc->clickeditem, |
1298 | | "inkscape:connection-end-point", cpid, false); |
| 1298 | "inkscape:connection-end-point", cpid, NULL); |
1299 | 1299 | } |
1300 | 1300 | g_free(shape_label); |
1301 | 1301 | } |
… |
… |
|
1435 | 1435 | |
1436 | 1436 | bool connection = false; |
1437 | 1437 | sp_object_setAttribute(cc->newconn, "inkscape:connector-type", |
1438 | | cc->isOrthogonal ? "orthogonal" : "polyline", false); |
| 1438 | cc->isOrthogonal ? "orthogonal" : "polyline", NULL); |
1439 | 1439 | sp_object_setAttribute(cc->newconn, "inkscape:connector-curvature", |
1440 | | Glib::Ascii::dtostr(cc->curvature).c_str(), false); |
| 1440 | Glib::Ascii::dtostr(cc->curvature).c_str(), NULL); |
1441 | 1441 | if (cc->shref) |
1442 | 1442 | { |
1443 | 1443 | sp_object_setAttribute(cc->newconn, "inkscape:connection-start", |
1444 | | cc->shref, false); |
| 1444 | cc->shref, NULL); |
1445 | 1445 | if (cc->scpid) |
1446 | 1446 | sp_object_setAttribute(cc->newconn, "inkscape:connection-start-point", |
1447 | | cc->scpid, false); |
| 1447 | cc->scpid, NULL); |
1448 | 1448 | connection = true; |
1449 | 1449 | } |
1450 | 1450 | |
1451 | 1451 | if (cc->ehref) |
1452 | 1452 | { |
1453 | 1453 | sp_object_setAttribute(cc->newconn, "inkscape:connection-end", |
1454 | | cc->ehref, false); |
| 1454 | cc->ehref, NULL); |
1455 | 1455 | if (cc->ecpid) |
1456 | 1456 | sp_object_setAttribute(cc->newconn, "inkscape:connection-end-point", |
1457 | | cc->ecpid, false); |
| 1457 | cc->ecpid, NULL); |
1458 | 1458 | connection = true; |
1459 | 1459 | } |
1460 | 1460 | // Process pending updates. |
… |
… |
|
1937 | 1937 | |
1938 | 1938 | if (cc_item_is_shape(item)) { |
1939 | 1939 | sp_object_setAttribute(item, "inkscape:connector-avoid", |
1940 | | value, false); |
| 1940 | value, NULL); |
1941 | 1941 | item->avoidRef->handleSettingChange(); |
1942 | 1942 | changes++; |
1943 | 1943 | } |
=== modified file 'src/extension/effect.cpp'
|
|
|
323 | 323 | Inkscape::XML::Node * |
324 | 324 | Effect::find_menu (Inkscape::XML::Node * menustruct, const gchar *name) |
325 | 325 | { |
326 | | if (menustruct == NULL) return false; |
| 326 | if (menustruct == NULL) return NULL; |
327 | 327 | for (Inkscape::XML::Node * child = menustruct; |
328 | 328 | child != NULL; |
329 | 329 | child = child->next()) { |
=== modified file 'src/gradient-drag.cpp'
|
|
|
1969 | 1969 | { |
1970 | 1970 | if (!selected) return; |
1971 | 1971 | |
1972 | | SPDocument *document = false; |
| 1972 | SPDocument *document = NULL; |
1973 | 1973 | |
1974 | 1974 | struct StructStopInfo { |
1975 | 1975 | SPStop * spstop; |
=== modified file 'src/interface.cpp'
|
|
|
1154 | 1154 | sp_object_setAttribute( SP_OBJECT(item), |
1155 | 1155 | fillnotstroke ? "inkscape:x-fill-tag":"inkscape:x-stroke-tag", |
1156 | 1156 | palName.c_str(), |
1157 | | false ); |
| 1157 | NULL ); |
1158 | 1158 | item->updateRepr(); |
1159 | 1159 | |
1160 | 1160 | sp_repr_css_set_property( css, fillnotstroke ? "fill":"stroke", c ); |
=== modified file 'src/live_effects/lpe-perp_bisector.h'
|
|
|
27 | 27 | class KnotHolderEntityEnd; |
28 | 28 | class KnotHolderEntityLeftEnd; |
29 | 29 | class KnotHolderEntityRightEnd; |
30 | | void bisector_end_set(SPItem *item, Geom::Point const &p, bool left); |
| 30 | void bisector_end_set(SPItem *item, Geom::Point const &p, bool left = true); |
31 | 31 | } |
32 | 32 | |
33 | 33 | class LPEPerpBisector : public Effect { |
… |
… |
|
46 | 46 | friend class PB::KnotHolderEntityEnd; |
47 | 47 | friend class PB::KnotHolderEntityLeftEnd; |
48 | 48 | friend class PB::KnotHolderEntityRightEnd; |
49 | | friend void PB::bisector_end_set(SPItem *item, Geom::Point const &p, bool left = true); |
| 49 | friend void PB::bisector_end_set(SPItem *item, Geom::Point const &p, bool left); |
50 | 50 | |
51 | 51 | private: |
52 | 52 | ScalarParam length_left; |
=== modified file 'src/sp-polygon.cpp'
|
|
|
144 | 144 | (*p)++; |
145 | 145 | } |
146 | 146 | |
147 | | if (*p == '\0') { |
| 147 | if (**p == '\0') { |
148 | 148 | return false; |
149 | 149 | } |
150 | 150 | |
=== modified file 'src/widgets/toolbox.cpp'
|
|
|
7932 | 7932 | |
7933 | 7933 | if (cc_item_is_connector(item)) { |
7934 | 7934 | sp_object_setAttribute(item, "inkscape:connector-type", |
7935 | | value, false); |
| 7935 | value, NULL); |
7936 | 7936 | item->avoidRef->handleSettingChange(); |
7937 | 7937 | modmade = true; |
7938 | 7938 | } |
… |
… |
|
7981 | 7981 | |
7982 | 7982 | if (cc_item_is_connector(item)) { |
7983 | 7983 | sp_object_setAttribute(item, "inkscape:connector-curvature", |
7984 | | value, false); |
| 7984 | value, NULL); |
7985 | 7985 | item->avoidRef->handleSettingChange(); |
7986 | 7986 | modmade = true; |
7987 | 7987 | } |