diff options
author | Stijn Buys <ingar@osirion.org> | 2013-07-12 21:11:21 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-07-12 21:11:21 +0000 |
commit | 359fd932e5925dff7dd722bd9bb2aa463210badd (patch) | |
tree | d29515e14e724f9a7cd3845676b47fb174c3eaa4 | |
parent | 1346537ab4fbd6c9853161c4accc8073a9975372 (diff) |
Removes the revertstate, as it is no longer being used,
-rw-r--r-- | src/solverwindow.cc | 10 | ||||
-rw-r--r-- | src/solverwindow.h | 1 |
2 files changed, 3 insertions, 8 deletions
diff --git a/src/solverwindow.cc b/src/solverwindow.cc index a73eb51..bb9a2ec 100644 --- a/src/solverwindow.cc +++ b/src/solverwindow.cc @@ -52,8 +52,7 @@ void SolverWindow::openFromFile(const QString & filename) QApplication::setOverrideCursor(Qt::WaitCursor); - QTextStream textstream(&file); - + QTextStream textstream(&file); Sudoku sudoku; for (int row = 0; row < 9; row++) { for (int column = 0; column < 9 ; column++) { @@ -62,11 +61,9 @@ void SolverWindow::openFromFile(const QString & filename) sudoku.cell(row, column).set_value(i); } } - solverwindow_sudokuwidget->set_values(sudoku); - solverwindow_revertstate.assign(sudoku); - file.close(); + solverwindow_sudokuwidget->set_values(sudoku); solverwindow_filename = filename; QApplication::restoreOverrideCursor(); @@ -86,8 +83,7 @@ void SolverWindow::saveToFile(const QString & filename) QApplication::setOverrideCursor(Qt::WaitCursor); - QTextStream textstream(&file); - + QTextStream textstream(&file); Sudoku sudoku; solverwindow_sudokuwidget->get_values(sudoku); for (int row = 0; row < 9; row++) { diff --git a/src/solverwindow.h b/src/solverwindow.h index dc2e595..053e14a 100644 --- a/src/solverwindow.h +++ b/src/solverwindow.h @@ -55,7 +55,6 @@ private: void openFromFile(const QString & filename); SudokuWidget *solverwindow_sudokuwidget; - Sudoku solverwindow_revertstate; QString solverwindow_filename; }; |