summaryrefslogtreecommitdiffstats
path: root/third_party/libjingle
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-05 22:23:20 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-05 22:23:20 +0000
commit225c8f507421a2eff2ed7a900104431d04ed7e5e (patch)
tree770b7081fc8f2a15abe4635938e03550f010a526 /third_party/libjingle
parentf3f0c05dfbcbfec2ecbb79ba9bab6ffc8f93ea32 (diff)
downloadchromium_src-225c8f507421a2eff2ed7a900104431d04ed7e5e.zip
chromium_src-225c8f507421a2eff2ed7a900104431d04ed7e5e.tar.gz
chromium_src-225c8f507421a2eff2ed7a900104431d04ed7e5e.tar.bz2
linux: build with -Wextra
95% of this is removing "const" from return types, but turning this on found one bug! (A "for" loop that expected its iterator to go negative but which was using an unsigned type.) BUG=34160 Review URL: http://codereview.chromium.org/570012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38266 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/libjingle')
-rw-r--r--third_party/libjingle/files/talk/base/httpcommon.h2
-rw-r--r--third_party/libjingle/files/talk/p2p/base/candidate.h2
-rw-r--r--third_party/libjingle/files/talk/p2p/base/stunrequest.cc2
-rw-r--r--third_party/libjingle/files/talk/p2p/base/stunrequest.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/third_party/libjingle/files/talk/base/httpcommon.h b/third_party/libjingle/files/talk/base/httpcommon.h
index 2893933..fae39f9 100644
--- a/third_party/libjingle/files/talk/base/httpcommon.h
+++ b/third_party/libjingle/files/talk/base/httpcommon.h
@@ -169,7 +169,7 @@ bool HttpHasNthAttribute(HttpAttributeList& attributes,
// Convert RFC1123 date (DoW, DD Mon YYYY HH:MM:SS TZ) to unix timestamp
bool HttpDateToSeconds(const std::string& date, unsigned long* seconds);
-inline const uint16 UrlDefaultPort(bool secure) {
+inline uint16 UrlDefaultPort(bool secure) {
return secure ? HTTP_SECURE_PORT : HTTP_DEFAULT_PORT;
}
diff --git a/third_party/libjingle/files/talk/p2p/base/candidate.h b/third_party/libjingle/files/talk/p2p/base/candidate.h
index ac41311..bc88a42 100644
--- a/third_party/libjingle/files/talk/p2p/base/candidate.h
+++ b/third_party/libjingle/files/talk/p2p/base/candidate.h
@@ -49,7 +49,7 @@ public:
void set_address(const talk_base::SocketAddress & address)
{ address_ = address; }
- const float preference() const { return preference_; }
+ float preference() const { return preference_; }
void set_preference(const float preference) { preference_ = preference; }
const std::string preference_str() const {
std::ostringstream ost;
diff --git a/third_party/libjingle/files/talk/p2p/base/stunrequest.cc b/third_party/libjingle/files/talk/p2p/base/stunrequest.cc
index 66b8ef6..a4cbe7b 100644
--- a/third_party/libjingle/files/talk/p2p/base/stunrequest.cc
+++ b/third_party/libjingle/files/talk/p2p/base/stunrequest.cc
@@ -146,7 +146,7 @@ StunRequest::~StunRequest() {
delete msg_;
}
-const StunMessageType StunRequest::type() {
+StunMessageType StunRequest::type() {
assert(msg_);
return msg_->type();
}
diff --git a/third_party/libjingle/files/talk/p2p/base/stunrequest.h b/third_party/libjingle/files/talk/p2p/base/stunrequest.h
index b36861c..c3d79f9 100644
--- a/third_party/libjingle/files/talk/p2p/base/stunrequest.h
+++ b/third_party/libjingle/files/talk/p2p/base/stunrequest.h
@@ -88,7 +88,7 @@ public:
const std::string& id() { return id_; }
// Returns the STUN type of the request message.
- const StunMessageType type();
+ StunMessageType type();
// Handles messages for sending and timeout.
void OnMessage(talk_base::Message* pmsg);