Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /src/lib/simulator/src/electronics/components/demultiplexer.cpp [9e3b00] .. [812dd5] Maximize Restore

  Switch to side-by-side view

--- a/src/lib/simulator/src/electronics/components/demultiplexer.cpp
+++ b/src/lib/simulator/src/electronics/components/demultiplexer.cpp
@@ -19,7 +19,7 @@
 // #include "libraryitem.h"
 
 Demultiplexer::Demultiplexer(Circuit &ownerCircuit)
-		: Component(ownerCircuit), 
+		: Component(ownerCircuit),
 		m_input(LogicConfig())
 {
 	m_input.setCallback(this, (CallbackPtr)(&Demultiplexer::inStateChanged));
@@ -58,7 +58,7 @@
 
 /*
 void Demultiplexer::dataChanged() {
-    
+
 	if (hasProperty("numInput") && dataInt("numInput") != -1) {
 		int addressSize = int(std::ceil(std::log((double)dataInt("numInput")) / std::log(2.0)));
 		property("numInput")->setValue(-1);
@@ -90,7 +90,7 @@
     }
     Q_UNUSED(oldValue);
 
-    initPins(newValue.asUInt());
+    initPins(newValue.toUInt());
 }