summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cc431af)
raw | patch | inline | side by side (parent: cc431af)
author | joncruz <joncruz@users.sourceforge.net> | |
Fri, 1 Aug 2008 04:22:35 +0000 (04:22 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Fri, 1 Aug 2008 04:22:35 +0000 (04:22 +0000) |
22 files changed:
index 2987b3212fdbed0aa57de9379ed3129a791154f3..21889179f7d7e01a5d70ded0cf2e89aa589a9176 100644 (file)
--- a/src/dialogs/swatches.cpp
+++ b/src/dialogs/swatches.cpp
@@ -240,7 +240,7 @@ static void handleSecondaryClick( GtkWidget* widget, gint arg1, gpointer callbac
}
}
-static gboolean handleEnterNotify( GtkWidget* widget, GdkEventCrossing* event, gpointer callback_data ) {
+static gboolean handleEnterNotify( GtkWidget* /*widget*/, GdkEventCrossing* /*event*/, gpointer callback_data ) {
ColorItem* item = reinterpret_cast<ColorItem*>(callback_data);
if ( item ) {
SPDesktop *desktop = SP_ACTIVE_DESKTOP;
@@ -254,7 +254,7 @@ static gboolean handleEnterNotify( GtkWidget* widget, GdkEventCrossing* event, g
return FALSE;
}
-static gboolean handleLeaveNotify( GtkWidget* widget, GdkEventCrossing* event, gpointer callback_data ) {
+static gboolean handleLeaveNotify( GtkWidget* /*widget*/, GdkEventCrossing* /*event*/, gpointer callback_data ) {
ColorItem* item = reinterpret_cast<ColorItem*>(callback_data);
if ( item ) {
SPDesktop *desktop = SP_ACTIVE_DESKTOP;
index d426721134213955e473102c68b565689a37c5cf..edeb9e3b72e84ae8aa32facda54fb0fe52881feb 100644 (file)
}
}
-int main(int argc, char *argv[]) {
+int main(int /*argc*/, char */*argv*/[]) {
utest_start("bezier-utils.cpp");
UTEST_TEST("copy_without_nans_or_adjacent_duplicates") {
index d1a8e833c808a5ff41b252abe24bf032e5e2436b..b5c7cc6a3754f00e981e2f1786e9f754254ae9d9 100644 (file)
SPCurve *curve = shape->curve;
if (curve->is_empty())
continue;
-
+
nrShapes++;
PovShapeInfo shapeInfo;
g_error ("logical error, because pathv_to_linear_and_cubic_beziers was used");
}
- if (segmentNr <= segmentCount)
+ if (segmentNr <= static_cast<int>(segmentCount))
out(",\n");
else
out("\n");
double cmaxx = cminmax.max()[X];
double cminy = cminmax.min()[Y];
double cmaxy = cminmax.max()[Y];
-
+
//# prefix for following declarations
char *pfx = (char *)id.c_str();
outbuf.clear();
doHeader();
-
+
outbuf.append(curveBuf);
-
+
doTail();
int ch = *iter;
fputc(ch, f);
}
-
+
fclose(f);
}
index 1a983fece5e0d7af3f0202787c7d6cb41fbff927..a400ca01f6deb0a7ca369f21f36d30775c1cbceb 100644 (file)
}
int
-main(int argc, char *argv[])
+main(int /*argc*/, char */*argv*/[])
{
int const ret = ( ( test_conversions()
&& test_unit_table() )
diff --git a/src/knotholder.cpp b/src/knotholder.cpp
index ae9737b325165e8d151b2dd4967aa130f6c98fd1..df50b9ff520bbd2874ff6a209686d45cacedf5f2 100644 (file)
--- a/src/knotholder.cpp
+++ b/src/knotholder.cpp
}
// for drag, this is done by ungrabbed_handler, but for click we must do it here
- sp_document_done(SP_OBJECT_DOCUMENT(item), object_verb,
+ sp_document_done(SP_OBJECT_DOCUMENT(item), object_verb,
_("Change handle"));
}
}
void
-KnotHolder::knot_ungrabbed_handler(SPKnot *knot)
+KnotHolder::knot_ungrabbed_handler(SPKnot */*knot*/)
{
if (this->released) {
this->released(this->item);
else
object_verb = SP_VERB_SELECTION_DYNAMIC_OFFSET;
}
-
+
sp_document_done(SP_OBJECT_DOCUMENT (object), object_verb,
_("Move handle"));
}
index 061333cbbd4343544b0724040d12b83cf7903c6f..112dfaedfb8ae88f32d9003ae104165ec35f2089 100644 (file)
#include "utest/utest.h"
#include "2geom/isnan.h"
-int main(int argc, char *argv[])
+int main(int /*argc*/, char */*argv*/[])
{
utest_start("in-svg-plane.h");
index c457f9666b655527ca415777642077397293a7b7..610ebb7507485d8fd63cf4705fedb92f6ce0d863 100644 (file)
NR_DF_TEST_CLOSE(a[Y], b[Y], 1e-5) );
}
-int main(int argc, char *argv[])
+int main(int /*argc*/, char */*argv*/[])
{
int rc = EXIT_SUCCESS;
index 312055fee853c913c2bb392ea789dedf880b4c6f..0ceb19ac03cf4ed84735b1a80a35326ccbb46f2c 100644 (file)
using NR::Point;
-int main(int argc, char *argv[])
+int main(int /*argc*/, char */*argv*/[])
{
utest_start("nr-point-fns");
index 45b2450e098743db5c6a449c725f6e24ea163ddf..fb7df7eef7ea9abd6871ccd073d44ad845a1fbd1 100644 (file)
#include <libnr/nr-rotate-fns.h>
#include <utest/utest.h>
-int main(int argc, char *argv[])
+int main(int /*argc*/, char */*argv*/[])
{
utest_start("rotate-fns");
index 63b9d17377990f5291e5110e9e06eb1bae7e8f0c..b44562500b5d7ffe0a9e56e54d08e1284af2eb0f 100644 (file)
using NR::X;
using NR::Y;
-int main(int argc, char *argv[])
+int main(int /*argc*/, char */*argv*/[])
{
utest_start("rotate");
index cc255d02a841cccf8f4a502f797df8b8632361ad..6bc79917d7e1fea9920cb8df49a8eb83b04df3f5 100644 (file)
using NR::X;
using NR::Y;
-int main(int argc, char *argv[])
+int main(int /*argc*/, char */*argv*/[])
{
utest_start("NR::scale");
index 9e1ef116626b9d05df27acaa3e57ec63de4fcccc..7896315c1a81c773ab825c0764f9692f3ec5cbf5 100644 (file)
using NR::Y;
-int main(int argc, char *argv[])
+int main(int /*argc*/, char */*argv*/[])
{
utest_start("translate");
index 87a35fc68011f86285a259e1dc2c9d9f4c08c46e..153ca79102779b67f83ac80a99cfc27741441698 100644 (file)
using NR::Y;
-int main(int argc, char *argv[]) {
+int main(int /*argc*/, char */*argv*/[]) {
utest_start("Basic NR::Point operations");
UTEST_TEST("X,Y values") {
index b0cebab8dacf7d05392f60d00025725002f5b97b..555b9d32dc9421bc322217acf2a1cfe3759ab7ae 100644 (file)
* This function should be overwritten by derived effects if they want to provide their own helperpaths.
*/
void
-Effect::addCanvasIndicators(SPLPEItem *lpeitem, std::vector<Geom::PathVector> &hp_vec)
+Effect::addCanvasIndicators(SPLPEItem */*lpeitem*/, std::vector<Geom::PathVector> &/*hp_vec*/)
{
}
index 8c24c50de204de20a2c8bf13708cde93a170233e..aac3dfa69063b22d02eb7387fa6736f380d7db76 100644 (file)
virtual Glib::ustring * param_getTooltip() { return ¶m_tooltip; };
// overload these for your particular parameter to make it provide knotholder handles or canvas helperpaths
- virtual void addKnotHolderEntities(KnotHolder *knotholder, SPDesktop *desktop, SPItem *item) {}
- virtual void addCanvasIndicators(SPLPEItem *lpeitem, std::vector<Geom::PathVector> &hp_vec) {};
+ virtual void addKnotHolderEntities(KnotHolder */*knotholder*/, SPDesktop */*desktop*/, SPItem */*item*/) {}
+ virtual void addCanvasIndicators(SPLPEItem */*lpeitem*/, std::vector<Geom::PathVector> &/*hp_vec*/) {};
virtual void param_editOncanvas(SPItem * /*item*/, SPDesktop * /*dt*/) {};
virtual void param_setup_nodepath(Inkscape::NodePath::Path */*np*/) {};
index 2d659c2c7beee0ca4f84be3cb10b18af04286628..e74729b3599e899b9ffafae5e297aec0c8f89490 100644 (file)
}
void
-PathParam::addCanvasIndicators(SPLPEItem *lpeitem, std::vector<Geom::PathVector> &hp_vec)
+PathParam::addCanvasIndicators(SPLPEItem */*lpeitem*/, std::vector<Geom::PathVector> &hp_vec)
{
hp_vec.push_back(_pathvector);
}
index dea750091c96c4595fce2ea54c1b0d53e14996cc..5ba4bcfc71dc450f3f5f4a08765cf59091dce99f 100644 (file)
void
TextParam::setPosAndAnchor(const Geom::Piecewise<Geom::D2<Geom::SBasis> > &pwd2,
- const double t, const double length, bool use_curvature)
+ const double t, const double length, bool /*use_curvature*/)
{
using namespace Geom;
index be42cffbc8f0719199526679de0013b1a582b1e8..7ce5255429ac1ae5f56fa5545c7cc21069090eea 100644 (file)
TextParamInternal(Effect* effect) :
TextParam("", "", "", NULL, effect) {}
- virtual Gtk::Widget * param_newWidget(Gtk::Tooltips * tooltips) { return NULL; }
+ virtual Gtk::Widget * param_newWidget(Gtk::Tooltips * /*tooltips*/) { return NULL; }
};
} //namespace LivePathEffect
diff --git a/src/sp-script.cpp b/src/sp-script.cpp
index 48247ecad7610c9ae9c46c8fcb3d30029ce83eeb..2b855e4554d803989747da7da56ab2fdd1147516 100644 (file)
--- a/src/sp-script.cpp
+++ b/src/sp-script.cpp
}
}
-static void sp_script_update(SPObject *object, SPCtx *ctx, guint flags)
+static void sp_script_update(SPObject */*object*/, SPCtx */*ctx*/, guint /*flags*/)
{
}
-static void sp_script_modified(SPObject *object, guint flags)
+static void sp_script_modified(SPObject */*object*/, guint /*flags*/)
{
}
-static Inkscape::XML::Node *sp_script_write(SPObject *object, Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags)
+static Inkscape::XML::Node *sp_script_write(SPObject */*object*/, Inkscape::XML::Document */*xml_doc*/, Inkscape::XML::Node *repr, guint /*flags*/)
{
/*
TODO:
index e309677c0139b239a36191a3d1daa0543dc0e365..45db65e33e647082aef7bc5caee8185ecd9f3936 100644 (file)
return ret && n_values == 0 && iter == c.end();
}
-int main(int argc, char *argv[]) {
+int main(int /*argc*/, char */*argv*/[]) {
Inkscape::GC::init();
utest_start("List Container");
UTEST_TEST("range constructor") {
index 5057e724aad59b6bd172bed4b4007dc7ce4e5acf..293f7aa1355b2a0a9b984af289ec4aed2554e116 100644 (file)
}
void
-element_child_added (Inkscape::XML::Node * repr, Inkscape::XML::Node * child, Inkscape::XML::Node * ref, gpointer ptr)
+element_child_added (Inkscape::XML::Node * /*repr*/, Inkscape::XML::Node * child, Inkscape::XML::Node * ref, gpointer ptr)
{
NodeData * data;
GtkCTreeNode * before;
@@ -260,7 +260,7 @@ element_child_added (Inkscape::XML::Node * repr, Inkscape::XML::Node * child, In
}
void
-element_attr_changed (Inkscape::XML::Node * repr, const gchar * key, const gchar * old_value, const gchar * new_value, bool is_interactive, gpointer ptr)
+element_attr_changed (Inkscape::XML::Node * repr, const gchar * key, const gchar * /*old_value*/, const gchar * new_value, bool /*is_interactive*/, gpointer ptr)
{
NodeData * data;
gchar *label;
@@ -270,7 +270,7 @@ element_attr_changed (Inkscape::XML::Node * repr, const gchar * key, const gchar
if (data->tree->blocked) return;
if (strcmp (key, "id")) return;
-
+
if (new_value) {
label = g_strdup_printf ("<%s id=\"%s\">", repr->name(), new_value);
} else {
@@ -281,7 +281,7 @@ element_attr_changed (Inkscape::XML::Node * repr, const gchar * key, const gchar
}
void
-element_child_removed (Inkscape::XML::Node * repr, Inkscape::XML::Node * child, Inkscape::XML::Node * ref, gpointer ptr)
+element_child_removed (Inkscape::XML::Node * /*repr*/, Inkscape::XML::Node * child, Inkscape::XML::Node * /*ref*/, gpointer ptr)
{
NodeData * data;
}
void
-element_order_changed (Inkscape::XML::Node * repr, Inkscape::XML::Node * child, Inkscape::XML::Node * oldref, Inkscape::XML::Node * newref, gpointer ptr)
+element_order_changed (Inkscape::XML::Node * /*repr*/, Inkscape::XML::Node * child, Inkscape::XML::Node * /*oldref*/, Inkscape::XML::Node * newref, gpointer ptr)
{
NodeData * data;
GtkCTreeNode * before, * node;
}
void
-text_content_changed (Inkscape::XML::Node * repr, const gchar * old_content, const gchar * new_content, gpointer ptr)
+text_content_changed (Inkscape::XML::Node * /*repr*/, const gchar * /*old_content*/, const gchar * new_content, gpointer ptr)
{
NodeData *data;
gchar *label;
@@ -326,7 +326,7 @@ text_content_changed (Inkscape::XML::Node * repr, const gchar * old_content, con
}
void
-comment_content_changed (Inkscape::XML::Node *repr, const gchar * old_content, const gchar *new_content, gpointer ptr)
+comment_content_changed (Inkscape::XML::Node */*repr*/, const gchar * /*old_content*/, const gchar *new_content, gpointer ptr)
{
NodeData *data;
gchar *label;
@@ -341,7 +341,7 @@ comment_content_changed (Inkscape::XML::Node *repr, const gchar * old_content, c
}
void
-pi_content_changed(Inkscape::XML::Node *repr, const gchar * old_content, const gchar *new_content, gpointer ptr)
+pi_content_changed(Inkscape::XML::Node *repr, const gchar * /*old_content*/, const gchar *new_content, gpointer ptr)
{
NodeData *data;
gchar *label;
{
if (ref) {
GtkCTreeNode * before;
- before = repr_to_child (parent, ref);
+ before = repr_to_child (parent, ref);
g_assert (before != NULL);
before = GTK_CTREE_ROW (before)->sibling;
return before;
}
gboolean
-check_drag (GtkCTree * tree, GtkCTreeNode * node, GtkCTreeNode * new_parent, GtkCTreeNode * new_sibling)
+check_drag (GtkCTree * /*tree*/, GtkCTreeNode * node, GtkCTreeNode * new_parent, GtkCTreeNode * /*new_sibling*/)
{
GtkCTreeNode * old_parent;
@@ -434,7 +434,7 @@ check_drag (GtkCTree * tree, GtkCTreeNode * node, GtkCTreeNode * new_parent, Gtk
}
Inkscape::XML::Node *
-sp_xmlview_tree_node_get_repr (SPXMLViewTree * tree, GtkCTreeNode * node)
+sp_xmlview_tree_node_get_repr (SPXMLViewTree * /*tree*/, GtkCTreeNode * node)
{
return NODE_DATA (node)->repr;
}
index 9b0ccf5dadf4ff3fc4a5196bf9e84e381b031125..d4f9d094d4f56a3709acdd9487f3bb7be07de92c 100644 (file)
int sp_main_gui (int, char const**) { return 0; }
int sp_main_console (int, char const**) { return 0; }
-int main(int argc, char *argv[]) {
+int main(int /*argc*/, char */*argv*/[]) {
Inkscape::XML::Document *document;
Inkscape::XML::Node *a, *b, *c, *root;