1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-08-05 08:26:28 +00:00

Standardises on const [Half]Cycles as the thing called and returned, rather than const [Half]Cycles & as it's explicitly defined to be only one int in size, so using a reference is overly weighty.

This commit is contained in:
Thomas Harte
2017-07-27 22:05:29 -04:00
parent 1fb158b297
commit 4abd62e62b
47 changed files with 55 additions and 55 deletions

View File

@@ -124,7 +124,7 @@ uint8_t WD1770::get_register(int address) {
}
}
void WD1770::run_for(const Cycles &cycles) {
void WD1770::run_for(const Cycles cycles) {
Storage::Disk::Controller::run_for(cycles);
if(delay_time_) {

View File

@@ -43,7 +43,7 @@ class WD1770: public Storage::Disk::Controller {
uint8_t get_register(int address);
/// Runs the controller for @c number_of_cycles cycles.
void run_for(const Cycles &cycles);
void run_for(const Cycles cycles);
using Storage::Disk::Controller::run_for;
enum Flag: uint8_t {