diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 02:14:08 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 02:14:08 +0000 |
commit | f5aca1a1b402bd7ebc944dc6e6fe65828d863365 (patch) | |
tree | 4a0fdd8e166d5c4b03543279d332b9a858ef62df /src/protocolhttp.cpp | |
parent | 10c557562e1d67c55314c212371ea9cb7f802863 (diff) | |
download | libbu++-f5aca1a1b402bd7ebc944dc6e6fe65828d863365.tar.gz libbu++-f5aca1a1b402bd7ebc944dc6e6fe65828d863365.tar.bz2 libbu++-f5aca1a1b402bd7ebc944dc6e6fe65828d863365.tar.xz libbu++-f5aca1a1b402bd7ebc944dc6e6fe65828d863365.zip |
Bu::FString is now String, and there's a shell script to fix any other programs
that were using fstring, I hope.
Diffstat (limited to 'src/protocolhttp.cpp')
-rw-r--r-- | src/protocolhttp.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/protocolhttp.cpp b/src/protocolhttp.cpp index 2a7fbdf..2fe447a 100644 --- a/src/protocolhttp.cpp +++ b/src/protocolhttp.cpp | |||
@@ -51,7 +51,7 @@ void Bu::ProtocolHttp::onNewData( Bu::Client *pClient ) | |||
51 | 51 | ||
52 | for(;;) | 52 | for(;;) |
53 | { | 53 | { |
54 | Bu::FString sToken; | 54 | Bu::String sToken; |
55 | TokenType tt = getToken( sToken ); | 55 | TokenType tt = getToken( sToken ); |
56 | 56 | ||
57 | if( tt == ttOutOfData ) | 57 | if( tt == ttOutOfData ) |
@@ -148,7 +148,7 @@ void Bu::ProtocolHttp::onNewData( Bu::Client *pClient ) | |||
148 | } | 148 | } |
149 | } | 149 | } |
150 | 150 | ||
151 | Bu::ProtocolHttp::TokenType Bu::ProtocolHttp::getToken( Bu::FString &line ) | 151 | Bu::ProtocolHttp::TokenType Bu::ProtocolHttp::getToken( Bu::String &line ) |
152 | { | 152 | { |
153 | char s; | 153 | char s; |
154 | int jmax = pClient->getInputSize(); | 154 | int jmax = pClient->getInputSize(); |
@@ -330,7 +330,7 @@ Bu::ProtocolHttp::Response::Response( int iCode ) : | |||
330 | } | 330 | } |
331 | } | 331 | } |
332 | 332 | ||
333 | Bu::ProtocolHttp::Response::Response( int iCode, const Bu::FString &sReason ) : | 333 | Bu::ProtocolHttp::Response::Response( int iCode, const Bu::String &sReason ) : |
334 | iCode( iCode ), | 334 | iCode( iCode ), |
335 | sReason( sReason ) | 335 | sReason( sReason ) |
336 | { | 336 | { |
@@ -341,12 +341,12 @@ Bu::ProtocolHttp::Response::~Response() | |||
341 | } | 341 | } |
342 | 342 | ||
343 | void Bu::ProtocolHttp::Response::setHeader( | 343 | void Bu::ProtocolHttp::Response::setHeader( |
344 | const Bu::FString &sKey, const Bu::FString &sVal ) | 344 | const Bu::String &sKey, const Bu::String &sVal ) |
345 | { | 345 | { |
346 | hHeaders.insert( sKey, sVal ); | 346 | hHeaders.insert( sKey, sVal ); |
347 | } | 347 | } |
348 | 348 | ||
349 | void Bu::ProtocolHttp::Response::setContent( const Bu::FString &sCont ) | 349 | void Bu::ProtocolHttp::Response::setContent( const Bu::String &sCont ) |
350 | { | 350 | { |
351 | sContent = sCont; | 351 | sContent = sCont; |
352 | } | 352 | } |