refactor

Tue, 03 Apr 2018 17:37:33 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Tue, 03 Apr 2018 17:37:33 +0300
changeset 1375
689121d162b6
parent 1374
d389af23fbfa
child 1376
83dd6cbd7f1a

refactor

src/toolsets/basictoolset.cpp file | annotate | diff | comparison | revisions
--- a/src/toolsets/basictoolset.cpp	Tue Apr 03 17:34:13 2018 +0300
+++ b/src/toolsets/basictoolset.cpp	Tue Apr 03 17:37:33 2018 +0300
@@ -279,10 +279,7 @@
 void BasicToolset::edit()
 {
 	if (countof(selectedObjects()) == 1)
-	{
-		LDObject* object = *selectedObjects().begin();
-		::editObject(this->m_window, object);
-	}
+		::editObject(this->m_window, *selectedObjects().begin());
 }
 
 void BasicToolset::modeSelect()

mercurial