From 0684e3afa4af660ccfc795d49015c3a468a1cb9c Mon Sep 17 00:00:00 2001 From: Marcus10110 Date: Wed, 31 Jul 2024 13:15:09 -0700 Subject: [PATCH] Step1: remove auto_ptr. (still need to fix access) --- docs/Analyzer_API.md | 4 ++-- src/SimpleSerialAnalyzer.h | 4 ++-- src/SimpleSerialAnalyzerSettings.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/Analyzer_API.md b/docs/Analyzer_API.md index 717fafc..fbb39e5 100644 --- a/docs/Analyzer_API.md +++ b/docs/Analyzer_API.md @@ -673,8 +673,8 @@ extern "C" ANALYZER_EXPORT void __cdecl DestroyAnalyzer( Analyzer* analyzer ); You’ll 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; ``` diff --git a/src/SimpleSerialAnalyzer.h b/src/SimpleSerialAnalyzer.h index 69ae85d..8eef32a 100644 --- a/src/SimpleSerialAnalyzer.h +++ b/src/SimpleSerialAnalyzer.h @@ -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; diff --git a/src/SimpleSerialAnalyzerSettings.h b/src/SimpleSerialAnalyzerSettings.h index 1b34136..2ac432e 100644 --- a/src/SimpleSerialAnalyzerSettings.h +++ b/src/SimpleSerialAnalyzerSettings.h @@ -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