- In debug mode, if any TF2 objects are dirty, they speak up.
This commit is contained in:
Paul Beckingham 2014-08-09 20:26:51 -04:00
parent 9996e5adef
commit 6209529aaa
6 changed files with 8 additions and 0 deletions

View file

@ -57,6 +57,9 @@ TF2::TF2 ()
////////////////////////////////////////////////////////////////////////////////
TF2::~TF2 ()
{
if (_dirty && context.verbose ("debug"))
std::cout << format (STRING_TDB2_DIRTY_EXIT, _file)
<< "\n";
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -861,6 +861,7 @@
#define STRING_TDB2_REMOVED "Task removed."
#define STRING_TDB2_UNDO_COMPLETE "Undo complete."
#define STRING_TDB2_UNDO_SYNCED "Cannot undo change because the task was already synced. Modify the task instead."
#define STRING_TDB2_DIRTY_EXIT "Exiting with unwritten changes to {1}"
// text
// A comma-separated list of commands is appended.

View file

@ -874,6 +874,7 @@
#define STRING_TDB2_REMOVED "Tarea eliminada."
#define STRING_TDB2_UNDO_COMPLETE "Deshacer completado."
#define STRING_TDB2_UNDO_SYNCED "No se puede deshacer el cambio porque la tarea ya ha sido sincronizada. Como alternativa, modifique la tarea."
#define STRING_TDB2_DIRTY_EXIT "Exiting with unwritten changes to {1}"
// text
// Se añade al final una lista de comandos separados por comas.

View file

@ -860,6 +860,7 @@
#define STRING_TDB2_REMOVED "Tâche retirée."
#define STRING_TDB2_UNDO_COMPLETE "Annulation terminée."
#define STRING_TDB2_UNDO_SYNCED "Impossible d'annuler les changements car la tâche a déjà été synchronysée. Modifiez plutôt la tâche."
#define STRING_TDB2_DIRTY_EXIT "Exiting with unwritten changes to {1}"
// text
// A comma-separated list of commands is appended.

View file

@ -861,6 +861,7 @@
#define STRING_TDB2_REMOVED "Task rimosso."
#define STRING_TDB2_UNDO_COMPLETE "Undo completato."
#define STRING_TDB2_UNDO_SYNCED "Cannot undo change because the task was already synced. Modify the task instead."
#define STRING_TDB2_DIRTY_EXIT "Exiting with unwritten changes to {1}"
// text
// A comma-separated list of commands is appended.

View file

@ -861,6 +861,7 @@
#define STRING_TDB2_REMOVED "Tarefa removida."
#define STRING_TDB2_UNDO_COMPLETE "Reversão concluída."
#define STRING_TDB2_UNDO_SYNCED "Não é possível reverter a alteração porque a tarefa já foi syncronizada. Em vez disso modifique a tarefa."
#define STRING_TDB2_DIRTY_EXIT "Exiting with unwritten changes to {1}"
// text
// A comma-separated list of commands is appended.