Ticket #42866: 10019_10017.diff

File 10019_10017.diff, 7.3 KB (added by jjstickel (Jonathan Stickel), 10 years ago)
  • src/2geom/interval.h

    === modified file 'src/2geom/interval.h'
     
    238238    /**
    239239     * Check whether this OptInterval is empty or not.
    240240     */
    241     inline bool isEmpty() { return (*this == false); };
     241    //inline bool isEmpty() { return (*this); };
    242242   
    243243    /**
    244244     * If \c this is empty, copy argument \c a. Otherwise, union with it (and do nothing when \c a is empty)
  • src/2geom/rect.h

    === modified file 'src/2geom/rect.h'
     
    215215    /**
    216216     * Check whether this OptRect is empty or not.
    217217     */
    218     inline bool isEmpty() const { return (*this == false); };
     218    inline bool isEmpty() const { return (*this); };
    219219
    220220    /**
    221221     * If \c this is empty, copy argument \c b. Otherwise, union with it (and do nothing when \c b is empty)
  • src/color-profile.cpp

    === modified file 'src/color-profile.cpp'
     
    1010#include <glib/gi18n.h>
    1111
    1212#ifdef DEBUG_LCMS
    13 #include <gtk.h>
     13#include <gtk/gtk.h>
    1414#endif // DEBUG_LCMS
    1515
    1616#include <cstring>
  • src/connector-context.cpp

    === modified file 'src/connector-context.cpp'
     
    12871287        if (found) {
    12881288            if (cc->clickedhandle == cc->endpt_handle[0]) {
    12891289                sp_object_setAttribute(cc->clickeditem,
    1290                         "inkscape:connection-start", shape_label, false);
     1290                        "inkscape:connection-start", shape_label, NULL);
    12911291                sp_object_setAttribute(cc->clickeditem,
    1292                         "inkscape:connection-start-point", cpid, false);
     1292                        "inkscape:connection-start-point", cpid, NULL);
    12931293            }
    12941294            else {
    12951295                sp_object_setAttribute(cc->clickeditem,
    1296                         "inkscape:connection-end", shape_label, false);
     1296                        "inkscape:connection-end", shape_label, NULL);
    12971297                sp_object_setAttribute(cc->clickeditem,
    1298                         "inkscape:connection-end-point", cpid, false);
     1298                        "inkscape:connection-end-point", cpid, NULL);
    12991299            }
    13001300            g_free(shape_label);
    13011301        }
     
    14351435
    14361436        bool connection = false;
    14371437        sp_object_setAttribute(cc->newconn, "inkscape:connector-type",
    1438                 cc->isOrthogonal ? "orthogonal" : "polyline", false);
     1438                cc->isOrthogonal ? "orthogonal" : "polyline", NULL);
    14391439        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);
    14411441        if (cc->shref)
    14421442        {
    14431443            sp_object_setAttribute(cc->newconn, "inkscape:connection-start",
    1444                     cc->shref, false);
     1444                    cc->shref, NULL);
    14451445            if (cc->scpid)
    14461446                sp_object_setAttribute(cc->newconn, "inkscape:connection-start-point",
    1447                         cc->scpid, false);
     1447                        cc->scpid, NULL);
    14481448            connection = true;
    14491449        }
    14501450
    14511451        if (cc->ehref)
    14521452        {
    14531453            sp_object_setAttribute(cc->newconn, "inkscape:connection-end",
    1454                     cc->ehref, false);
     1454                    cc->ehref, NULL);
    14551455            if (cc->ecpid)
    14561456                sp_object_setAttribute(cc->newconn, "inkscape:connection-end-point",
    1457                         cc->ecpid, false);
     1457                        cc->ecpid, NULL);
    14581458            connection = true;
    14591459        }
    14601460        // Process pending updates.
     
    19371937
    19381938        if (cc_item_is_shape(item)) {
    19391939            sp_object_setAttribute(item, "inkscape:connector-avoid",
    1940                     value, false);
     1940                    value, NULL);
    19411941            item->avoidRef->handleSettingChange();
    19421942            changes++;
    19431943        }
  • src/extension/effect.cpp

    === modified file 'src/extension/effect.cpp'
     
    323323Inkscape::XML::Node *
    324324Effect::find_menu (Inkscape::XML::Node * menustruct, const gchar *name)
    325325{
    326     if (menustruct == NULL) return false;
     326    if (menustruct == NULL) return NULL;
    327327    for (Inkscape::XML::Node * child = menustruct;
    328328            child != NULL;
    329329            child = child->next()) {
  • src/gradient-drag.cpp

    === modified file 'src/gradient-drag.cpp'
     
    19691969{
    19701970    if (!selected) return;
    19711971
    1972     SPDocument *document = false;
     1972    SPDocument *document = NULL;
    19731973
    19741974    struct StructStopInfo {
    19751975        SPStop * spstop;
  • src/interface.cpp

    === modified file 'src/interface.cpp'
     
    11541154                            sp_object_setAttribute( SP_OBJECT(item),
    11551155                                                    fillnotstroke ? "inkscape:x-fill-tag":"inkscape:x-stroke-tag",
    11561156                                                    palName.c_str(),
    1157                                                     false );
     1157                                                    NULL );
    11581158                            item->updateRepr();
    11591159
    11601160                            sp_repr_css_set_property( css, fillnotstroke ? "fill":"stroke", c );
  • src/live_effects/lpe-perp_bisector.h

    === modified file 'src/live_effects/lpe-perp_bisector.h'
     
    2727  class KnotHolderEntityEnd;
    2828  class KnotHolderEntityLeftEnd;
    2929  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);
    3131}
    3232
    3333class LPEPerpBisector : public Effect {
     
    4646    friend class PB::KnotHolderEntityEnd;
    4747    friend class PB::KnotHolderEntityLeftEnd;
    4848    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);
    5050
    5151private:
    5252    ScalarParam length_left;
  • src/sp-polygon.cpp

    === modified file 'src/sp-polygon.cpp'
     
    144144        (*p)++;
    145145    }
    146146
    147     if (*p == '\0') {
     147    if (**p == '\0') {
    148148        return false;
    149149    }
    150150
  • src/widgets/toolbox.cpp

    === modified file 'src/widgets/toolbox.cpp'
     
    79327932
    79337933        if (cc_item_is_connector(item)) {
    79347934            sp_object_setAttribute(item, "inkscape:connector-type",
    7935                     value, false);
     7935                    value, NULL);
    79367936            item->avoidRef->handleSettingChange();
    79377937            modmade = true;
    79387938        }
     
    79817981
    79827982        if (cc_item_is_connector(item)) {
    79837983            sp_object_setAttribute(item, "inkscape:connector-curvature",
    7984                     value, false);
     7984                    value, NULL);
    79857985            item->avoidRef->handleSettingChange();
    79867986            modmade = true;
    79877987        }