summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2013-10-27 20:18:05 +0000
committerKris <Kris.De.Gussem@hotmail.com>2013-10-27 20:18:05 +0000
commit9e6a3cc4552a1f4728e267057b3c86a11a656770 (patch)
tree68dec39f8dc351c9a0915f76620966c650d2c196 /src
parent"fix" some "unused parameter" warnings (diff)
downloadinkscape-9e6a3cc4552a1f4728e267057b3c86a11a656770.tar.gz
inkscape-9e6a3cc4552a1f4728e267057b3c86a11a656770.zip
"fix" some "unused parameter" warnings
(bzr r12737)
Diffstat (limited to 'src')
-rw-r--r--src/sp-item.cpp14
-rw-r--r--src/sp-linear-gradient.cpp2
-rw-r--r--src/sp-mesh-gradient.cpp2
-rw-r--r--src/sp-mesh-row.cpp2
-rw-r--r--src/sp-metadata.cpp2
-rw-r--r--src/sp-object.cpp6
6 files changed, 14 insertions, 14 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp
index d32fbdef6..55ff60aeb 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;
}
@@ -1411,7 +1411,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;
}
diff --git a/src/sp-linear-gradient.cpp b/src/sp-linear-gradient.cpp
index 4e7a08f4b..959e8d733 100644
--- a/src/sp-linear-gradient.cpp
+++ b/src/sp-linear-gradient.cpp
@@ -96,7 +96,7 @@ Inkscape::XML::Node* SPLinearGradient::write(Inkscape::XML::Document *xml_doc, I
return repr;
}
-cairo_pattern_t* SPLinearGradient::pattern_new(cairo_t *ct, Geom::OptRect const &bbox, double opacity) {
+cairo_pattern_t* SPLinearGradient::pattern_new(cairo_t * /*ct*/, Geom::OptRect const &bbox, double opacity) {
this->ensureVector();
cairo_pattern_t *cp = cairo_pattern_create_linear(
diff --git a/src/sp-mesh-gradient.cpp b/src/sp-mesh-gradient.cpp
index 3fd277f52..eb5ed1bd0 100644
--- a/src/sp-mesh-gradient.cpp
+++ b/src/sp-mesh-gradient.cpp
@@ -93,7 +93,7 @@ sp_meshgradient_repr_write(SPMeshGradient *mg)
}
-cairo_pattern_t* SPMeshGradient::pattern_new(cairo_t *ct,
+cairo_pattern_t* SPMeshGradient::pattern_new(cairo_t * /*ct*/,
#if defined(MESH_DEBUG) || (CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 11, 4))
Geom::OptRect const &bbox,
double opacity
diff --git a/src/sp-mesh-row.cpp b/src/sp-mesh-row.cpp
index 04619d6cc..07747f7f5 100644
--- a/src/sp-mesh-row.cpp
+++ b/src/sp-mesh-row.cpp
@@ -81,7 +81,7 @@ void SPMeshRow::build(SPDocument* doc, Inkscape::XML::Node* repr) {
* Virtual build: set meshrow attributes from its associated XML node.
*/
-void SPMeshRow::set(unsigned int key, const gchar* value) {
+void SPMeshRow::set(unsigned int /*key*/, const gchar* /*value*/) {
}
/**
diff --git a/src/sp-metadata.cpp b/src/sp-metadata.cpp
index a093107ac..bf4ce27a1 100644
--- a/src/sp-metadata.cpp
+++ b/src/sp-metadata.cpp
@@ -98,7 +98,7 @@ void SPMetadata::set(unsigned int key, const gchar* value) {
SPObject::set(key, value);
}
-void SPMetadata::update(SPCtx* ctx, unsigned int flags) {
+void SPMetadata::update(SPCtx* /*ctx*/, unsigned int flags) {
debug("0x%08x",(unsigned int)this);
//SPMetadata *metadata = SP_METADATA(object);
diff --git a/src/sp-object.cpp b/src/sp-object.cpp
index e5f119ee0..4a32c9470 100644
--- a/src/sp-object.cpp
+++ b/src/sp-object.cpp
@@ -151,11 +151,11 @@ void SPObject::read_content() {
//throw;
}
-void SPObject::update(SPCtx* ctx, unsigned int flags) {
+void SPObject::update(SPCtx* /*ctx*/, unsigned int /*flags*/) {
//throw;
}
-void SPObject::modified(unsigned int flags) {
+void SPObject::modified(unsigned int /*flags*/) {
//throw;
}
@@ -624,7 +624,7 @@ void SPObject::remove_child(Inkscape::XML::Node* child) {
}
}
-void SPObject::order_changed(Inkscape::XML::Node *child, Inkscape::XML::Node * old_ref, Inkscape::XML::Node *new_ref) {
+void SPObject::order_changed(Inkscape::XML::Node *child, Inkscape::XML::Node * /*old_ref*/, Inkscape::XML::Node *new_ref) {
SPObject* object = this;
SPObject *ochild = object->get_child_by_repr(child);