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

Switch to side-by-side view

--- a/src/lib/simulator/src/electronics/components/dependentsource.cpp
+++ b/src/lib/simulator/src/electronics/components/dependentsource.cpp
@@ -60,7 +60,7 @@
 {
     Q_UNUSED(oldValue);
     Q_ASSERT(theProperty.name() == "gain");
-    m_cccs.setGain(newValue.asDouble());
+    m_cccs.setGain(newValue.toDouble());
 }
 
 //END class ECCCCS
@@ -88,7 +88,7 @@
 {
     Q_UNUSED(oldValue);
     Q_ASSERT(theProperty.name() == "gain");
-    m_ccvs.setGain( newValue.asDouble() );
+    m_ccvs.setGain( newValue.toDouble() );
 }
 
 
@@ -116,7 +116,7 @@
 {
     Q_UNUSED(oldValue);
     Q_ASSERT( theProperty.name() == "gain");
-    m_vccs.setGain( newValue.asDouble() );
+    m_vccs.setGain( newValue.toDouble() );
 }
 
 //END class ECVCCS
@@ -144,7 +144,7 @@
 {
     Q_UNUSED(oldValue);
     Q_ASSERT(theProperty.name() == "gain");
-    m_vcvs.setGain( newValue.asDouble() );
+    m_vcvs.setGain( newValue.toDouble() );
 }
 
 //END class ECVCVS