--- nono/host/driver.h 2026/04/29 17:05:47 1.1.1.5 +++ nono/host/driver.h 2026/04/29 17:05:56 1.1.1.6 @@ -22,7 +22,7 @@ class Driver : public Object static const int NODATA = -1; protected: - Driver(HostDevice *hostdev_, const char *drivername_); + Driver(HostDevice *hostdev_, const std::string& drivername_); public: ~Driver() override; @@ -39,7 +39,7 @@ class Driver : public Object virtual void MonitorUpdateMD(TextScreen& screen, int y); // ドライバ名を取得。 - const char *GetDriverName() const { return drivername; } + const std::string& GetDriverName() const { return drivername; } // 親ホストデバイス(基本クラス)を取得。 HostDevice *GetHostDev() const { return hostdev; } @@ -58,5 +58,5 @@ class Driver : public Object // ドライバ名 ("none" とか)。 // 設定ファイルに合わせてすべて小文字。 - const char *drivername {}; + std::string drivername {}; };