| commit | 69702c400e274984a24d08fcaefe3952d5dcb36e | [log] [tgz] |
|---|---|---|
| author | Yunlian Jiang <[email protected]> | Tue Apr 09 19:34:11 2013 |
| committer | ChromeBot <[email protected]> | Thu Apr 18 01:47:16 2013 |
| tree | c465fd4519dad374fe5acbee8a8948ec1ee16634 | |
| parent | 941a2d4a4a23ee00f10819dd0b1ff47b0bee0225 [diff] |
Fix clang syntax warning.
The error message is
In file included from ../Core/CoreDatabase.cpp:30:
../Core/CoreDatabase.h:1545:26: error: read-only variable is not assignable
*pRefCats = -1;
~~~~~~~~~ ^
std::set is an ordered data structure, directly change one of the element
may destroy the order, it's dangerous.
BUG=chromium:219559
TEST=CFLAGS="-clang -print-cmdline" CXXFLAGS="-clang -print-cmdline"
emerge-x86-alex gobi3k-sdk passes.
Change-Id: I4e5f0a01cc920e81e8a3484e85111b1a00d3c7f4
Reviewed-on: https://gerrit.chromium.org/gerrit/47675
Reviewed-by: Han Shen <[email protected]>
Reviewed-by: Yunlian Jiang <[email protected]>
Tested-by: Yunlian Jiang <[email protected]>
Commit-Queue: Yunlian Jiang <[email protected]>