fork download
  1. if(mLastUndoIndex == mLastRedoIndex && !mRedoingAnUndo)
  2. {
  3. saveUndoState();
  4. mLastUndoIndex--;
  5. mLastRedoIndex--;
  6. mRedoingAnUndo = true;
  7. }
  8.  
  9. mUndoStep[mLastUndoIndex % UNDO_STATES]->undo(mEditorDatabase, false); // changes mEditorDatabase to istit last version
  10.  
  11. GridDatabase *database = getDatabase();
  12. mLoadTarget = database;
  13.  
  14. rebuildEverything(database); // Well, rebuild segments from walls at least
  15.  
  16. onSelectionChanged();
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:4: error: expected unqualified-id before ‘if’
    if(mLastUndoIndex == mLastRedoIndex && !mRedoingAnUndo)
    ^
prog.cpp:9:4: error: ‘mUndoStep’ does not name a type
    mUndoStep[mLastUndoIndex % UNDO_STATES]->undo(mEditorDatabase, false); // changes mEditorDatabase to istit last version
    ^
prog.cpp:11:4: error: ‘GridDatabase’ does not name a type
    GridDatabase *database = getDatabase();
    ^
prog.cpp:12:4: error: ‘mLoadTarget’ does not name a type
    mLoadTarget = database;
    ^
prog.cpp:14:21: error: expected constructor, destructor, or type conversion before ‘(’ token
    rebuildEverything(database); // Well, rebuild segments from walls at least
                     ^
prog.cpp:16:24: error: expected constructor, destructor, or type conversion before ‘;’ token
    onSelectionChanged();
                        ^
stdout
Standard output is empty