fixing typos and indents

This commit is contained in:
Clément Le Bihan
2021-05-04 23:30:20 +02:00
parent 550ab3aff4
commit fad712f9e2
2 changed files with 5 additions and 5 deletions

View File

@@ -28,7 +28,7 @@ namespace ComSquare::Renderer
//! @brief QT event that refresh the widget. (A draw screen) //! @brief QT event that refresh the widget. (A draw screen)
void paintEvent(QPaintEvent*) override; void paintEvent(QPaintEvent*) override;
// @brief Internal timer used for update intervals. //! @brief Internal timer used for update intervals.
QTimer _timer; QTimer _timer;
//! @brief Has the SF window been created yet. //! @brief Has the SF window been created yet.
bool _isInitialized = false; bool _isInitialized = false;

View File

@@ -124,7 +124,7 @@ namespace ComSquare
void SNES::enableMemoryBusDebugging() void SNES::enableMemoryBusDebugging()
{ {
#ifdef DEBUGGER_ENABLED #ifdef DEBUGGER_ENABLED
if (this->bus->isDebugger()) if (this->bus->isDebugger())
std::static_pointer_cast<Debugger::MemoryBusDebug>(this->bus)->focus(); std::static_pointer_cast<Debugger::MemoryBusDebug>(this->bus)->focus();
else else
@@ -132,9 +132,9 @@ namespace ComSquare
this->bus = std::make_shared<Debugger::MemoryBusDebug>(*this, *this->bus); this->bus = std::make_shared<Debugger::MemoryBusDebug>(*this, *this->bus);
this->cpu->setMemoryBus(this->bus); this->cpu->setMemoryBus(this->bus);
} }
#else #else
std::cerr << "Debugging features are not enabled. You can't enable the debugger." << std::endl; std::cerr << "Debugging features are not enabled. You can't enable the debugger." << std::endl;
#endif #endif
} }
void SNES::disableMemoryBusDebugging() void SNES::disableMemoryBusDebugging()
@@ -160,7 +160,7 @@ namespace ComSquare
void SNES::disableCgramDebugging() void SNES::disableCgramDebugging()
{ {
#ifdef DEBUGGER_ENABLED #ifdef DEBUGGER_ENABLED
this->_cgramViewer = nullptr; this->_cgramViewer = nullptr;
#endif #endif
} }