This commit is contained in:
folkert van heusden 2023-03-24 15:04:02 +01:00
parent 788df49a8d
commit b145bae3d0
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1
2 changed files with 9 additions and 9 deletions

View file

@ -47,25 +47,25 @@ void bus::add_cpu(cpu *const c)
this->c = c; this->c = c;
} }
void bus::add_tm11(tm_11 *tm11) void bus::add_tm11(tm_11 *const tm11)
{ {
delete this->tm11; delete this->tm11;
this->tm11 = tm11; this->tm11 = tm11;
} }
void bus::add_rk05(rk05 *rk05_) void bus::add_rk05(rk05 *const rk05_)
{ {
delete this->rk05_; delete this->rk05_;
this->rk05_ = rk05_; this->rk05_ = rk05_;
} }
void bus::add_rl02(rl02 *rl02_) void bus::add_rl02(rl02 *const rl02_)
{ {
delete this->rl02_; delete this->rl02_;
this->rl02_ = rl02_; this->rl02_ = rl02_;
} }
void bus::add_tty(tty *tty_) void bus::add_tty(tty *const tty_)
{ {
delete this->tty_; delete this->tty_;
this->tty_ = tty_; this->tty_ = tty_;

8
bus.h
View file

@ -113,10 +113,10 @@ public:
uint16_t get_console_leds() { return console_leds; } uint16_t get_console_leds() { return console_leds; }
void add_cpu (cpu *const c); void add_cpu (cpu *const c);
void add_tm11(tm_11 *tm11); void add_tm11(tm_11 *const tm11);
void add_rk05(rk05 *rk05_); void add_rk05(rk05 *const rk05_);
void add_rl02(rl02 *rl02_); void add_rl02(rl02 *const rl02_);
void add_tty(tty *tty_); void add_tty (tty *const tty_);
cpu *getCpu() { return this->c; } cpu *getCpu() { return this->c; }