Chromium Code Reviews| Index: webrtc/base/urlencode.cc |
| diff --git a/webrtc/base/urlencode.cc b/webrtc/base/urlencode.cc |
| index 8dc185dfb71ae357a1278b54ee9271a23d9923c6..439d5ff2ad3f9ff408bf908efda9462a6fcc5377 100644 |
| --- a/webrtc/base/urlencode.cc |
| +++ b/webrtc/base/urlencode.cc |
| @@ -10,7 +10,7 @@ |
| #include "webrtc/base/urlencode.h" |
| -#include "webrtc/base/common.h" |
| +#include "webrtc/base/checks.h" |
| #include "webrtc/base/stringutils.h" |
| static int HexPairValue(const char * code) { |
| @@ -114,7 +114,7 @@ int InternalUrlEncode(const char *source, char *dest, unsigned int max, |
| } |
| source++; |
| } |
| - ASSERT(static_cast<unsigned int>(dest - start) < max); |
| + RTC_DCHECK(static_cast<unsigned int>(dest - start) < max); |
|
palmkvist
2016/12/01 13:31:13
RTC_DCHECK_LT
Hzj_jie
2016/12/06 22:33:07
Done.
|
| *dest = 0; |
| return static_cast<int>(dest - start); |