[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[vidalia-svn] r2300: Add a 'const' so we call the right torValue() method, otherw (vidalia/trunk/src/vidalia/config)
Author: edmanm
Date: 2008-01-15 23:37:30 -0500 (Tue, 15 Jan 2008)
New Revision: 2300
Modified:
vidalia/trunk/src/vidalia/config/serversettings.cpp
vidalia/trunk/src/vidalia/config/serversettings.h
Log:
Add a 'const' so we call the right torValue() method, otherwise we would be
SETCONFing RelayBandwidthFoo but GETCONFing BandwidthFoo. Broken in r2172 by
edmanm. (How does this guy still have svn write access anyway?)
Modified: vidalia/trunk/src/vidalia/config/serversettings.cpp
===================================================================
--- vidalia/trunk/src/vidalia/config/serversettings.cpp 2008-01-15 17:59:11 UTC (rev 2299)
+++ vidalia/trunk/src/vidalia/config/serversettings.cpp 2008-01-16 04:37:30 UTC (rev 2300)
@@ -167,7 +167,7 @@
* Currently this just translates BandwidthFoo to RelayBandwidthFoo when
* appropriate. */
QVariant
-ServerSettings::torValue(const QString &key)
+ServerSettings::torValue(const QString &key) const
{
if (torControl()->getTorVersion() >= 0x020001) {
if (key == SETTING_BANDWIDTH_RATE)
Modified: vidalia/trunk/src/vidalia/config/serversettings.h
===================================================================
--- vidalia/trunk/src/vidalia/config/serversettings.h 2008-01-15 17:59:11 UTC (rev 2299)
+++ vidalia/trunk/src/vidalia/config/serversettings.h 2008-01-16 04:37:30 UTC (rev 2300)
@@ -97,7 +97,7 @@
/** Virtual method called when we retrieve a server-related setting from Tor.
* Currently this just translates BandwidthFoo to RelayBandwidthFoo when
* appropriate. */
- virtual QVariant torValue(const QString &key);
+ virtual QVariant torValue(const QString &key) const;
private:
/** Returns Tor-recognizable configuration keys and current values. */