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: Youll also need these member variables:
```c++ ```c++
std::auto_ptr< {YourName}AnalyzerSettings > mSettings; {YourName}AnalyzerSettings mSettings;
std::auto_ptr< {YourName}AnalyzerResults > mResults; {YourName}AnalyzerResults mResults;
{YourName}SimulationDataGenerator mSimulationDataGenerator; {YourName}SimulationDataGenerator mSimulationDataGenerator;
bool mSimulationInitialized; bool mSimulationInitialized;
``` ```

View File

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

View File

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