[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[vidalia-svn] r3956: Bump to 0.1.15 and add a couple const-correctness fixes that (in vidalia/branches/vidalia-0.1: . src/vidalia/network)
Author: edmanm
Date: 2009-07-09 20:51:49 -0400 (Thu, 09 Jul 2009)
New Revision: 3956
Modified:
vidalia/branches/vidalia-0.1/CMakeLists.txt
vidalia/branches/vidalia-0.1/src/vidalia/network/geoipresponse.cpp
vidalia/branches/vidalia-0.1/src/vidalia/network/geoipresponse.h
Log:
Bump to 0.1.15 and add a couple const-correctness fixes that are already
in trunk.
Modified: vidalia/branches/vidalia-0.1/CMakeLists.txt
===================================================================
--- vidalia/branches/vidalia-0.1/CMakeLists.txt 2009-07-09 23:38:59 UTC (rev 3955)
+++ vidalia/branches/vidalia-0.1/CMakeLists.txt 2009-07-10 00:51:49 UTC (rev 3956)
@@ -14,7 +14,7 @@
set(VER_MAJOR "0")
set(VER_MINOR "1")
set(VER_PATCH "15")
-set(VERSION "${VER_MAJOR}.${VER_MINOR}.${VER_PATCH}-svn")
+set(VERSION "${VER_MAJOR}.${VER_MINOR}.${VER_PATCH}")
message(STATUS "Configuring Vidalia ${VERSION}")
project(Vidalia)
Modified: vidalia/branches/vidalia-0.1/src/vidalia/network/geoipresponse.cpp
===================================================================
--- vidalia/branches/vidalia-0.1/src/vidalia/network/geoipresponse.cpp 2009-07-09 23:38:59 UTC (rev 3955)
+++ vidalia/branches/vidalia-0.1/src/vidalia/network/geoipresponse.cpp 2009-07-10 00:51:49 UTC (rev 3956)
@@ -29,7 +29,7 @@
/** Constructor. Parses the response data for an HTTP header and Geo IP
* information. */
-GeoIpResponse::GeoIpResponse(QByteArray response)
+GeoIpResponse::GeoIpResponse(const QByteArray &response)
{
QString errmsg;
@@ -94,7 +94,7 @@
/** Decodes a <b>chunked</b> transfer encoding. Returns the unchunked
* result on success, or an empty QByteArray if decoding fails. */
QByteArray
-GeoIpResponse::decodeChunked(QByteArray chunked)
+GeoIpResponse::decodeChunked(const QByteArray &chunked)
{
QByteArray unchunked;
QString sizeString;
Modified: vidalia/branches/vidalia-0.1/src/vidalia/network/geoipresponse.h
===================================================================
--- vidalia/branches/vidalia-0.1/src/vidalia/network/geoipresponse.h 2009-07-09 23:38:59 UTC (rev 3955)
+++ vidalia/branches/vidalia-0.1/src/vidalia/network/geoipresponse.h 2009-07-10 00:51:49 UTC (rev 3956)
@@ -29,19 +29,19 @@
public:
/** Constructor. Parses the response data for an HTTP header and Geo IP
* information. */
- GeoIpResponse(QByteArray response);
+ GeoIpResponse(const QByteArray &response);
/** Returns the HTTP status code for this response. */
- int statusCode() { return _header.statusCode(); }
+ int statusCode() const { return _header.statusCode(); }
/** Returns the HTTP status message for this response. */
- QString statusMessage() { return _header.reasonPhrase(); }
+ QString statusMessage() const { return _header.reasonPhrase(); }
/** Returns the Geo IP information contained in this response. */
- QList<GeoIp> geoIps() { return _geoips; }
+ QList<GeoIp> geoIps() const { return _geoips; }
private:
/** Decodes a <b>chunked</b> transfer encoding. Returns the unchunked
* result on success, or an empty QByteArray if decoding fails. */
- QByteArray decodeChunked(QByteArray chunked);
+ static QByteArray decodeChunked(const QByteArray &chunked);
QHttpResponseHeader _header; /**< HTTP response header. */
QList<GeoIp> _geoips; /**< Geo IP information in this response. */