Step1: remove auto_ptr. (still need to fix access)

This commit is contained in:
Marcus10110
2024-07-31 13:15:09 -07:00
parent 95ef70c352
commit 0684e3afa4
3 changed files with 6 additions and 6 deletions

View File

@@ -673,8 +673,8 @@ extern "C" ANALYZER_EXPORT void __cdecl DestroyAnalyzer( Analyzer* analyzer );
Youll also need these member variables:
```c++
std::auto_ptr< {YourName}AnalyzerSettings > mSettings;
std::auto_ptr< {YourName}AnalyzerResults > mResults;
{YourName}AnalyzerSettings mSettings;
{YourName}AnalyzerResults mResults;
{YourName}SimulationDataGenerator mSimulationDataGenerator;
bool mSimulationInitialized;
```

View File

@@ -22,8 +22,8 @@ public:
virtual bool NeedsRerun();
protected: //vars
std::auto_ptr< SimpleSerialAnalyzerSettings > mSettings;
std::auto_ptr< SimpleSerialAnalyzerResults > mResults;
SimpleSerialAnalyzerSettings mSettings;
SimpleSerialAnalyzerResults mResults;
AnalyzerChannelData* mSerial;
SimpleSerialSimulationDataGenerator mSimulationDataGenerator;

View File

@@ -20,8 +20,8 @@ public:
U32 mBitRate;
protected:
std::auto_ptr< AnalyzerSettingInterfaceChannel > mInputChannelInterface;
std::auto_ptr< AnalyzerSettingInterfaceInteger > mBitRateInterface;
AnalyzerSettingInterfaceChannel mInputChannelInterface;
AnalyzerSettingInterfaceInteger mBitRateInterface;
};
#endif //SIMPLESERIAL_ANALYZER_SETTINGS