replaced c-style array with c++ array
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user