From: robertc <> Date: Wed, 9 Jul 2003 04:38:50 +0000 (+0000) Subject: Summary: Clear up debugs test case. X-Git-Tag: SQUID_3_0_PRE1~57 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d219c3871b2be43a1d2475da10911c0c2443b138;p=thirdparty%2Fsquid.git Summary: Clear up debugs test case. Keywords: Alan Barrett noted that StreamTest::getAnInt returned a char const * which isn't all that obvious... Fixed to return an int. --- diff --git a/test-suite/debug.cc b/test-suite/debug.cc index 29aefb12f9..fbaf4ba4ec 100644 --- a/test-suite/debug.cc +++ b/test-suite/debug.cc @@ -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 *