From 7c6c9538b03c9eae24e38fbeb30dd76a16aff1d2 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 20 Jan 2011 05:30:43 +0000 Subject: Wow, got the Stream changes propegated, all tests build with string instead of fstring, and updated the copyright notice to extend to 2011 --- src/tests/rot13.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/tests/rot13.cpp') diff --git a/src/tests/rot13.cpp b/src/tests/rot13.cpp index 03ba385..1530af3 100644 --- a/src/tests/rot13.cpp +++ b/src/tests/rot13.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007-2010 Xagasoft, All rights reserved. + * Copyright (C) 2007-2011 Xagasoft, All rights reserved. * * This file is part of the libbu++ library and is released under the * terms of the license contained in the file LICENSE. @@ -28,21 +28,21 @@ public: { } - virtual size_t stop() + virtual Bu::size stop() { return 0; } - virtual size_t read( void *pBuf, size_t nBytes ) + virtual Bu::size read( void *pBuf, Bu::size nBytes ) { return rNext.read( pBuf, nBytes ); } - virtual size_t write( const void *pBuf, size_t nBytes ) + virtual Bu::size write( const void *pBuf, Bu::size nBytes ) { const char *cBuf = (const char *)pBuf; char *buf = new char[nBytes]; - for( size_t j = 0; j < nBytes; j++ ) + for( Bu::size j = 0; j < nBytes; j++ ) { if( cBuf[j] >= 'a' && cBuf[j] <= 'z' ) buf[j] = (cBuf[j]-'a'+13)%26+'a'; -- cgit v1.2.3