summaryrefslogtreecommitdiffstats
path: root/src/pen-context.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-04-21 21:58:15 +0000
committerMarkus Engel <markus.engel@tum.de>2013-04-21 21:58:15 +0000
commitbdde74bbab299f2ee448f1c55469c56a66fb01f7 (patch)
tree45bccef1ec815708f9b54171e2d567344f155074 /src/pen-context.cpp
parentMore cleaning. (diff)
downloadinkscape-bdde74bbab299f2ee448f1c55469c56a66fb01f7.tar.gz
inkscape-bdde74bbab299f2ee448f1c55469c56a66fb01f7.zip
Removed some unused files; more refactoring in EventContext tree.
(bzr r11608.1.104)
Diffstat (limited to 'src/pen-context.cpp')
-rw-r--r--src/pen-context.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pen-context.cpp b/src/pen-context.cpp
index 177aeaca9..00f7294be 100644
--- a/src/pen-context.cpp
+++ b/src/pen-context.cpp
@@ -234,14 +234,14 @@ void SPPenContext::finish() {
/**
* Callback that sets key to value in pen context.
*/
-void SPPenContext::set(Inkscape::Preferences::Entry* val) {
+void SPPenContext::set(const Inkscape::Preferences::Entry& val) {
SPEventContext* ec = this;
SPPenContext *pc = SP_PEN_CONTEXT(ec);
- Glib::ustring name = val->getEntryName();
+ Glib::ustring name = val.getEntryName();
if (name == "mode") {
- if ( val->getString() == "drag" ) {
+ if ( val.getString() == "drag" ) {
pc->mode = SP_PEN_CONTEXT_MODE_DRAG;
} else {
pc->mode = SP_PEN_CONTEXT_MODE_CLICK;