replaced c-style array with c++ array

This commit is contained in:
black
2025-07-04 21:51:43 +02:00
parent 762b806fe7
commit cfaacbd26f
4 changed files with 8 additions and 6 deletions

View File

@@ -4,6 +4,7 @@
#ifndef REGISTER_H
#define REGISTER_H
#include <array>
/// Eine Registerklasse als Singleton implementiert.
/// Als Speicher (Registers) wird ein int Array genutzt.
@@ -17,7 +18,7 @@ private:
/// Singleton instance
static Register *m_instance;
/// "Echter" Register Speicher
int m_registers[32];
std::array<int, 32> m_registers;
public:
/// Singleton Logik