]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Summary: Clear up debugs test case.
authorrobertc <>
Wed, 9 Jul 2003 04:38:50 +0000 (04:38 +0000)
committerrobertc <>
Wed, 9 Jul 2003 04:38:50 +0000 (04:38 +0000)
Keywords:

Alan Barrett noted that StreamTest::getAnInt returned a char const * which isn't all that obvious... Fixed to return an int.

test-suite/debug.cc

index 29aefb12f9d9b67588cb7e2e06b590caa212cf6d..fbaf4ba4ec712ce13dcafe6d740c1aabd23f6feb 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: debug.cc,v 1.1 2003/07/07 22:44:28 robertc Exp $
+ * $Id: debug.cc,v 1.2 2003/07/08 22:38:50 robertc Exp $
  *
  * DEBUG: section 19    Store Memory Primitives
  * AUTHOR: Robert Collins
@@ -42,7 +42,7 @@
 class StreamTest {
   public:
     std::ostream &serialise(std::ostream &);
-    char const *getAnInt() const;
+    int const getAnInt() const;
     char const *getACString() const;
 };
 
@@ -58,10 +58,10 @@ StreamTest::serialise(std::ostream &aStream)
     return aStream;
 }
 
-char const *
+int const
 StreamTest::getAnInt() const
 {
-    return "5";
+    return 5;
 }
 
 char const *