[glom] Comment that a return value is intentionally ignored.



commit c2cc6d25c3922d960dda6252d7476b1ce85ecc75
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Dec 4 19:32:50 2014 +0100

    Comment that a return value is intentionally ignored.

 tests/test_document_autosave.cc |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/test_document_autosave.cc b/tests/test_document_autosave.cc
index d9419c8..e74ed59 100644
--- a/tests/test_document_autosave.cc
+++ b/tests/test_document_autosave.cc
@@ -33,6 +33,8 @@ void cleanup()
   try
   {
     Glib::RefPtr<Gio::File> file = Gio::File::create_for_uri(file_uri);
+
+    //Ignore the return value because it will throw an exception instead.
     file->remove(); //This should be OK because it is a file, not a directory.
   }
   catch(const Gio::Error& ex)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]