[glom] Avoid an uninteresting stdcerr warning.



commit a3e8efdd55ea8580813ecd20b996ca6cf58a3830
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Nov 25 21:36:23 2011 +0100

    Avoid an uninteresting stdcerr warning.
    
    * glom/libglom/connectionpool.cc: It is OK to not know
    the document sometimes.

 ChangeLog                      |    7 +++++++
 glom/libglom/connectionpool.cc |    4 +++-
 2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3a34460..bd753ec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-11-25  Murray Cumming  <murrayc murrayc com>
 
+	Avoid an uninteresting stdcerr warning.
+
+	* glom/libglom/connectionpool.cc: It is OK to not know 
+	the document sometimes.
+
+2011-11-25  Murray Cumming  <murrayc murrayc com>
+
 	gcov: Use lcov instead of my hacky bash script.
 
 	* configure.ac: Check for lcov and genhtml.
diff --git a/glom/libglom/connectionpool.cc b/glom/libglom/connectionpool.cc
index 39a1242..c11fe8f 100644
--- a/glom/libglom/connectionpool.cc
+++ b/glom/libglom/connectionpool.cc
@@ -751,7 +751,9 @@ Document* ConnectionPool::get_document()
 {
   if(!m_slot_get_document)
   {
-    std::cerr << G_STRFUNC << ": m_slot_get_document is null." << std::endl;
+    //Don't bother warning because all the code that calls get_document() checks 
+    //for 0 and responds reasonably.
+    //std::cerr << G_STRFUNC << ": m_slot_get_document is null." << std::endl;
     return 0;
   }
 



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