We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e86051 commit 2033839Copy full SHA for 2033839
include/dspatch/Circuit.h
@@ -446,6 +446,7 @@ inline Circuit::Circuit() = default;
446
inline Circuit::~Circuit()
447
{
448
StopAutoTick();
449
+ DisconnectAllComponents();
450
}
451
452
inline bool Circuit::AddComponent( const Component::SPtr& component )
@@ -500,6 +501,8 @@ inline void Circuit::RemoveAllComponents()
500
501
502
PauseAutoTick();
503
504
505
+
506
_components.clear();
507
_componentsParallel.clear();
508
@@ -559,7 +562,6 @@ inline bool Circuit::DisconnectComponent( const Component::SPtr& component )
559
562
return true;
560
563
561
564
-// cppcheck-suppress unusedFunction
565
inline void Circuit::DisconnectAllComponents()
566
567
0 commit comments