[Mockpp-commits] mockpp/mockpp/compat Formatter.cpp,1.43,1.44
Brought to you by:
ewald-arnold
From: Ewald A. <ewa...@us...> - 2005-10-19 19:42:10
|
Update of /cvsroot/mockpp/mockpp/mockpp/compat In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6887/mockpp/compat Modified Files: Formatter.cpp Log Message: more descriptive output for bool Index: Formatter.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/compat/Formatter.cpp,v retrieving revision 1.43 retrieving revision 1.44 diff -u -d -r1.43 -r1.44 --- Formatter.cpp 28 Aug 2005 20:40:23 -0000 1.43 +++ Formatter.cpp 19 Oct 2005 19:41:57 -0000 1.44 @@ -247,7 +247,8 @@ mockpp::String & MOCKPP_EXPORT operator << ( mockpp::String &formatter, const bool &repdata ) { - formatter << mockpp::number( ( long ) repdata ); + formatter << (repdata ? MOCKPP_PCHAR( "true" ) + : MOCKPP_PCHAR( "false" )); return formatter; } @@ -268,7 +269,6 @@ mockpp::String & MOCKPP_EXPORT operator << ( mockpp::String &formatter, const signed char &repdata ) { - mockpp::String s; formatter << mockpp::charToReadable(repdata); return formatter; } |