replaced c-style array with c++ array
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
#ifndef MEMORY_H
|
||||
#define MEMORY_H
|
||||
#include <array>
|
||||
|
||||
/// Eine Hauptspeicherklasse als Singleton implementiert.
|
||||
/// Als Hauptspeicher wird ein Array genutzt.
|
||||
@@ -17,7 +18,7 @@ private:
|
||||
/// Singleton instance
|
||||
static Memory *m_instance;
|
||||
/// Hauptspeicher (hier 32 kB groß)
|
||||
int m_memory[8192];
|
||||
std::array<int, 8192> m_memory;
|
||||
|
||||
public:
|
||||
/// Singleton Logik
|
||||
|
||||
Reference in New Issue
Block a user