Skip to content

Commit

Permalink
RMG: misc warning fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Mar 25, 2024
1 parent a6da96c commit 41b510e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion Source/RMG/Thread/RomSearcherThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ void RomSearcherThread::searchDirectory(QString directory)
CoreRomHeader header;
CoreRomSettings settings;
bool ret;
int count = 0;

QList<QString> roms;
while (romDirIt.hasNext())
Expand Down
4 changes: 1 addition & 3 deletions Source/RMG/UserInterface/Dialog/Cheats/AddCheatDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ void AddCheatDialog::showErrorMessage(QString error, QString details)

bool AddCheatDialog::validate(void)
{
QTextDocument* document;
QStringList documentLines;
QStringList documentLines;
bool foundOption = false;
int optionSize = -1;
QRegularExpression hexRegExpr("^[0-9A-F]+$");
Expand Down Expand Up @@ -240,7 +239,6 @@ bool AddCheatDialog::getCheat(CoreCheat& cheat)
QStringList qLines;
std::vector<std::string> lines;

QTextDocument* document;
QString name;
QString author;
QString note;
Expand Down
5 changes: 0 additions & 5 deletions Source/RMG/UserInterface/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,6 @@ void MainWindow::on_Action_System_HardReset(void)
}
void MainWindow::on_Action_System_Pause(void)
{
bool isRunning = CoreIsEmulationRunning();
bool isPaused = CoreIsEmulationPaused();

bool ret;
Expand Down Expand Up @@ -1617,10 +1616,6 @@ void MainWindow::on_Action_System_Load(void)

void MainWindow::on_Action_System_CurrentSaveState(int slot)
{
QAction* slotAction;
QString dateTimeText;
std::string message;

if (!CoreSetSaveStateSlot(slot))
{
this->showErrorMessage("CoreSetSaveStateSlot() Failed", QString::fromStdString(CoreGetError()));
Expand Down

0 comments on commit 41b510e

Please sign in to comment.