diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2013-10-30 01:29:41 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2013-10-30 01:29:41 +0000 |
| commit | 69fdb9c26ab5c065e3e892a77982413f34dac7fe (patch) | |
| tree | 4d6052268d7a9a0d6eedc159256a0bcffe69ff78 /src/sp-item.cpp | |
| parent | Update to trunk (diff) | |
| parent | suppress uninitialized variables (x and y) warning, don't ask why... g++'s wa... (diff) | |
| download | inkscape-69fdb9c26ab5c065e3e892a77982413f34dac7fe.tar.gz inkscape-69fdb9c26ab5c065e3e892a77982413f34dac7fe.zip | |
Update to trunk
(bzr r11950.1.191)
Diffstat (limited to 'src/sp-item.cpp')
| -rw-r--r-- | src/sp-item.cpp | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp index d32fbdef6..c6daa853c 100644 --- a/src/sp-item.cpp +++ b/src/sp-item.cpp @@ -562,7 +562,7 @@ void SPItem::mask_ref_changed(SPObject *old_mask, SPObject *mask, SPItem *item) } } -void SPItem::update(SPCtx *ctx, guint flags) { +void SPItem::update(SPCtx* /*ctx*/, guint flags) { SPItem *item = this; SPItem* object = item; @@ -688,7 +688,7 @@ Inkscape::XML::Node* SPItem::write(Inkscape::XML::Document *xml_doc, Inkscape::X } // CPPIFY: make pure virtual -Geom::OptRect SPItem::bbox(Geom::Affine const &transform, SPItem::BBoxType type) const { +Geom::OptRect SPItem::bbox(Geom::Affine const & /*transform*/, SPItem::BBoxType /*type*/) const { //throw; return Geom::OptRect(); } @@ -869,7 +869,7 @@ unsigned int SPItem::pos_in_parent() const { } // CPPIFY: make pure virtual, see below! -void SPItem::snappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscape::SnapPreferences const *snapprefs) const { +void SPItem::snappoints(std::vector<Inkscape::SnapCandidatePoint> & /*p*/, Inkscape::SnapPreferences const */*snapprefs*/) const { //throw; } /* This will only be called if the derived class doesn't override this. @@ -919,7 +919,7 @@ void SPItem::getSnappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscap } // CPPIFY: make pure virtual -void SPItem::print(SPPrintContext* ctx) { +void SPItem::print(SPPrintContext* /*ctx*/) { //throw; } @@ -1006,7 +1006,7 @@ unsigned SPItem::display_key_new(unsigned numkeys) } // CPPIFY: make pure virtual -Inkscape::DrawingItem* SPItem::show(Inkscape::Drawing &drawing, unsigned int key, unsigned int flags) { +Inkscape::DrawingItem* SPItem::show(Inkscape::Drawing& /*drawing*/, unsigned int /*key*/, unsigned int /*flags*/) { //throw; return 0; } @@ -1065,7 +1065,7 @@ Inkscape::DrawingItem *SPItem::invoke_show(Inkscape::Drawing &drawing, unsigned } // CPPIFY: make pure virtual -void SPItem::hide(unsigned int key) { +void SPItem::hide(unsigned int /*key*/) { //throw; } @@ -1374,11 +1374,12 @@ void SPItem::doWriteTransform(Inkscape::XML::Node *repr, Geom::Affine const &tra if ( // run the object's set_transform (i.e. embed transform) only if: !preserve && // user did not chose to preserve all transforms - !clip_ref->getObject() && // the object does not have a clippath - !mask_ref->getObject() && // the object does not have a mask + (!clip_ref || !clip_ref->getObject()) && // the object does not have a clippath + (!mask_ref || !mask_ref->getObject()) && // the object does not have a mask !(!transform.isTranslation() && style && style->getFilter()) // the object does not have a filter, or the transform is translation (which is supposed to not affect filters) - ) { - transform_attr = this->set_transform(transform); + ) + { + transform_attr = this->set_transform(transform); if (freeze_stroke_width) { freeze_stroke_width_recursive(false); @@ -1411,7 +1412,7 @@ void SPItem::doWriteTransform(Inkscape::XML::Node *repr, Geom::Affine const &tra } // CPPIFY: see below, do not make pure? -gint SPItem::event(SPEvent* event) { +gint SPItem::event(SPEvent* /*event*/) { return FALSE; } |
