refactor: convert m_fila_system from raw pointer to shared_ptr

Matches BambuStudio commit c8f70c6ca. DevFilaSystem* m_fila_system
becomes std::shared_ptr<DevFilaSystem>, enabling proper shared ownership
for the AMS drying control feature without no-op deleter hacks.

- DeviceManager.hpp: m_fila_system and GetFilaSystem() use shared_ptr
- DeviceManager.cpp: std::make_shared allocation, remove manual delete,
  add .get() to ParseV1_0 calls
- MoonrakerPrinterAgent.cpp: add .get() to GetFilaSystem() in ParseV1_0
This commit is contained in:
Noisyfox
2026-07-07 17:29:10 +08:00
parent f713c7ae49
commit 922af972c7
3 changed files with 5 additions and 7 deletions

View File

@@ -114,7 +114,7 @@ private:
std::shared_ptr<DevExtensionTool> m_extension_tool;
DevExtderSystem* m_extder_system;
DevNozzleSystem* m_nozzle_system;
DevFilaSystem* m_fila_system;
std::shared_ptr<DevFilaSystem> m_fila_system;
DevFan* m_fan;
DevBed * m_bed;
DevStorage* m_storage;
@@ -329,7 +329,7 @@ public:
DevNozzleSystem* GetNozzleSystem() const { return m_nozzle_system;}
DevFilaSystem* GetFilaSystem() const { return m_fila_system;}
std::shared_ptr<DevFilaSystem> GetFilaSystem() const { return m_fila_system;}
bool HasAms() const;
DevLamp* GetLamp() const { return m_lamp; }