Raw -> Smart Pointers for mupp, qt5/qt6.

This commit is contained in:
2023-10-24 12:55:26 +02:00
parent 5002ed84de
commit 99492e820c
9 changed files with 140 additions and 158 deletions

View File

@@ -30,6 +30,8 @@
#ifndef _PMUPPSCRIPT_H_
#define _PMUPPSCRIPT_H_
#include <memory>
#include <QString>
#include <QStringList>
@@ -55,7 +57,6 @@ class PmuppScript : public QObject
public:
PmuppScript(QStringList script);
~PmuppScript();
void setLoadPath(const QString cmd);
QString getLoadPath() { return fLoadPath; }
@@ -79,10 +80,10 @@ class PmuppScript : public QObject
void finished();
private:
PmuppAdmin *fAdmin; ///< admin object
std::unique_ptr<PmuppAdmin> fAdmin; ///< admin object
QStringList fScript; ///< script source
PParamDataHandler *fParamDataHandler; ///< parameter data handler
std::unique_ptr<PParamDataHandler> fParamDataHandler; ///< parameter data handler
int fSelected; ///< -2=nothing selected, -1=all selected, >=0 is the index if the selected collection
PmuppPlotEntry fPlotEntry; ///< plot entry object