| commit | f129e84addb1b0ba1240f39430404dad717c21c2 | [log] [tgz] |
|---|---|---|
| author | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | Thu Sep 18 21:17:29 2014 +0200 |
| committer | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | Thu Sep 18 21:17:29 2014 +0200 |
| tree | 4e808b54b2013515a45031f46f3d368275d4a140 | |
| parent | 14fc930d5d2ef272b39342fa083f4097464fc9ea [diff] |
Fix comparison of String8 to char* literal
Clang (correctly) interprets
if ("." == sName)
as
if ("." == (const char*)sName)
and recognizes that comparing the pointers isn't what was meant.
With
if (sName == ".")
both clang and gcc see and use String8::operator==(const char *),
ensuring we get the wanted behavior.
Change-Id: Ide240e13214a56f6899f72de3db75dac647e6d4b
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>