summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-01-12 19:13:03 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-01-12 19:13:03 +0000
commitb94459967625b9aac3b3dce1d3a908e5ddd95450 (patch)
tree5b9bc8c9f6715e4113563e2f09886a2f4670bec5 /src/ui
parentupdate to trunk (diff)
parentpass class variables by reference for performance (diff)
downloadinkscape-b94459967625b9aac3b3dce1d3a908e5ddd95450.tar.gz
inkscape-b94459967625b9aac3b3dce1d3a908e5ddd95450.zip
update to trunk
(bzr r11950.1.234)
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/dialog/export.cpp2
-rw-r--r--src/ui/tools/box3d-tool.cpp2
-rw-r--r--src/ui/tools/node-tool.cpp2
-rw-r--r--src/ui/view/edit-widget-interface.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/dialog/export.cpp b/src/ui/dialog/export.cpp
index e896b9840..340a3dad0 100644
--- a/src/ui/dialog/export.cpp
+++ b/src/ui/dialog/export.cpp
@@ -813,7 +813,7 @@ void Export::onAreaToggled ()
/* If we still don't have a filename -- let's build
one that's nice */
if (filename.empty()) {
- const gchar * id = NULL;
+ const gchar * id = "object";
const GSList * reprlst = sp_desktop_selection(SP_ACTIVE_DESKTOP)->reprList();
for(; reprlst != NULL; reprlst = reprlst->next) {
Inkscape::XML::Node * repr = (Inkscape::XML::Node *)reprlst->data;
diff --git a/src/ui/tools/box3d-tool.cpp b/src/ui/tools/box3d-tool.cpp
index 80cc75e79..2e345fef1 100644
--- a/src/ui/tools/box3d-tool.cpp
+++ b/src/ui/tools/box3d-tool.cpp
@@ -515,7 +515,7 @@ bool Box3dTool::root_handler(GdkEvent* event) {
return ret;
}
-void Box3dTool::drag(guint state) {
+void Box3dTool::drag(guint /*state*/) {
if (!this->box3d) {
if (Inkscape::have_viable_layer(desktop, this->message_context) == false) {
return;
diff --git a/src/ui/tools/node-tool.cpp b/src/ui/tools/node-tool.cpp
index 8a950b528..7e33b1a4c 100644
--- a/src/ui/tools/node-tool.cpp
+++ b/src/ui/tools/node-tool.cpp
@@ -625,7 +625,7 @@ void NodeTool::select_area(Geom::Rect const &sel, GdkEventButton *event) {
}
}
-void NodeTool::select_point(Geom::Point const &sel, GdkEventButton *event) {
+void NodeTool::select_point(Geom::Point const &/*sel*/, GdkEventButton *event) {
using namespace Inkscape::UI; // pull in event helpers
if (!event) {
diff --git a/src/ui/view/edit-widget-interface.h b/src/ui/view/edit-widget-interface.h
index 26e47abbb..55683871d 100644
--- a/src/ui/view/edit-widget-interface.h
+++ b/src/ui/view/edit-widget-interface.h
@@ -148,7 +148,7 @@ struct EditWidgetInterface
virtual bool showInfoDialog( Glib::ustring const &message ) = 0;
/// Open yes/no dialog with warning text and confirmation question.
- virtual bool warnDialog (gchar*) = 0;
+ virtual bool warnDialog (Glib::ustring const &) = 0;
virtual Inkscape::UI::Widget::Dock* getDock () = 0;
};