From bdde74bbab299f2ee448f1c55469c56a66fb01f7 Mon Sep 17 00:00:00 2001 From: Markus Engel Date: Sun, 21 Apr 2013 23:58:15 +0200 Subject: Removed some unused files; more refactoring in EventContext tree. (bzr r11608.1.104) --- src/star-context.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/star-context.cpp') diff --git a/src/star-context.cpp b/src/star-context.cpp index aecdd1b0d..cb3e663d7 100644 --- a/src/star-context.cpp +++ b/src/star-context.cpp @@ -167,19 +167,19 @@ void SPStarContext::setup() { this->_message_context = new Inkscape::MessageContext(this->desktop->messageStack()); } -void SPStarContext::set(Inkscape::Preferences::Entry* val) { - Glib::ustring path = val->getEntryName(); +void SPStarContext::set(const Inkscape::Preferences::Entry& val) { + Glib::ustring path = val.getEntryName(); if (path == "magnitude") { - this->magnitude = CLAMP(val->getInt(5), 3, 1024); + this->magnitude = CLAMP(val.getInt(5), 3, 1024); } else if (path == "proportion") { - this->proportion = CLAMP(val->getDouble(0.5), 0.01, 2.0); + this->proportion = CLAMP(val.getDouble(0.5), 0.01, 2.0); } else if (path == "isflatsided") { - this->isflatsided = val->getBool(); + this->isflatsided = val.getBool(); } else if (path == "rounded") { - this->rounded = val->getDouble(); + this->rounded = val.getDouble(); } else if (path == "randomized") { - this->randomized = val->getDouble(); + this->randomized = val.getDouble(); } } -- cgit v1.2.3