aboutsummaryrefslogtreecommitdiff
path: root/src/tests/streamstack.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-01-20 18:09:04 +0000
committerMike Buland <eichlan@xagasoft.com>2011-01-20 18:09:04 +0000
commit393f1b414746a7f1977971dd7659dd2b47092b11 (patch)
tree81d0ca1ee70ab86a7d79c1991abe5c387b655fb2 /src/tests/streamstack.cpp
parentc259f95bd0e58b247940a339bb9b4b401b4e9438 (diff)
parent7e25a863325dc3e9762397e700030969e093b087 (diff)
downloadlibbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.gz
libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.bz2
libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.xz
libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.zip
Wow! Merged the branch, streams are updated, and there's no more FString, run
the fixstrings.sh script in the support directory to (hopefully) automatically update your projects.
Diffstat (limited to '')
-rw-r--r--src/tests/streamstack.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/tests/streamstack.cpp b/src/tests/streamstack.cpp
index b8c48e7..4a0e128 100644
--- a/src/tests/streamstack.cpp
+++ b/src/tests/streamstack.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2011 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/streamstack.h" 8#include "bu/streamstack.h"
2 9
3#include "bu/file.h" 10#include "bu/file.h"
@@ -24,7 +31,7 @@ public:
24 31
25 void write() 32 void write()
26 { 33 {
27 Bu::FString s; 34 Bu::String s;
28 time_t tNow = time( NULL ); 35 time_t tNow = time( NULL );
29 s = ctime( &tNow ); 36 s = ctime( &tNow );
30 long lSize = s.getSize()-1; 37 long lSize = s.getSize()-1;
@@ -34,7 +41,7 @@ public:
34 41
35 void read() 42 void read()
36 { 43 {
37 Bu::FString s; 44 Bu::String s;
38 long lSize; 45 long lSize;
39 rStream.read( &lSize, sizeof(long) ); 46 rStream.read( &lSize, sizeof(long) );
40 s.setSize( lSize ); 47 s.setSize( lSize );