changed a lot of small clang-tidy warnings
This commit is contained in:
@ -21,35 +21,28 @@
|
||||
// NOTE: I added this
|
||||
class fgc {
|
||||
public:
|
||||
fgc() : fg(CGA::LIGHT_GREY) {};
|
||||
fgc(CGA::color fg) : fg(fg) {};
|
||||
fgc() : fg(CGA::LIGHT_GREY) {}
|
||||
fgc(CGA::color fg) : fg(fg) {}
|
||||
CGA::color fg;
|
||||
};
|
||||
class bgc {
|
||||
public:
|
||||
bgc() : bg(CGA::BLACK) {};
|
||||
bgc(CGA::color bg) : bg(bg) {};
|
||||
bgc() : bg(CGA::BLACK) {}
|
||||
bgc(CGA::color bg) : bg(bg) {}
|
||||
CGA::color bg;
|
||||
};
|
||||
|
||||
// NOTE: I added this (changed this) to use BufferedCGA
|
||||
class CGA_Stream : public OutStream, public BufferedCGA {
|
||||
// class CGA_Stream : public OutStream, public CGA {
|
||||
|
||||
private:
|
||||
CGA_Stream(CGA_Stream& copy); // Verhindere Kopieren
|
||||
CGA_Stream(CGA_Stream& copy) = delete; // Verhindere Kopieren
|
||||
|
||||
public:
|
||||
CGA::color color_fg;
|
||||
CGA::color color_bg;
|
||||
bool blink;
|
||||
|
||||
CGA_Stream() : OutStream(), BufferedCGA() {
|
||||
// CGA_Stream() : OutStream(), CGA() {
|
||||
color_fg = CGA::LIGHT_GREY;
|
||||
color_bg = CGA::BLACK;
|
||||
blink = false;
|
||||
|
||||
CGA_Stream() : color_fg(CGA::LIGHT_GREY), color_bg(CGA::BLACK), blink(false) {
|
||||
flush();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user