--- nono/vm/rtc.h 2026/04/29 17:04:28 1.1.1.1 +++ nono/vm/rtc.h 2026/04/29 17:04:36 1.1.1.3 @@ -1,6 +1,7 @@ // // nono -// Copyright (C) 2017 isaki@NetBSD.org +// Copyright (C) 2020 nono project +// Licensed under nono-license.txt // #pragma once @@ -35,11 +36,11 @@ struct RTC // あまりやりたくないので、これを IODevice 派生クラスとしておく。 class RTCDevice : public IODevice { - typedef IODevice inherited; + using inherited = IODevice; public: RTCDevice(); - virtual ~RTCDevice(); + ~RTCDevice() override; // 初期化 // VM の RTC に仮想時刻(の初期値)をセットする。 @@ -81,4 +82,4 @@ class RTCDevice : public IODevice static const char * const wdays[7]; // 曜日文字列 (0 = "Sun", ...) }; -extern RTCDevice *gRTC; +extern std::unique_ptr gRTC;