summaryrefslogtreecommitdiffstats
path: root/xml
diff options
context:
space:
mode:
authorAndroid Code Review <code-review@android.com>2009-08-28 08:41:53 -0700
committerAndroid Code Review <code-review@android.com>2009-08-28 08:41:53 -0700
commit936ed499f3eb0c7a9c993388a86e8808389c7063 (patch)
treee39643276f07b98ec2d59eaa6c54e44ae948e963 /xml
parent8a80f3551c55c729bf28b1f0dc03b71b64475e1a (diff)
parentd1987ae0663958d591fcbed3352eb126f13b41bf (diff)
downloadlibcore-936ed499f3eb0c7a9c993388a86e8808389c7063.zip
libcore-936ed499f3eb0c7a9c993388a86e8808389c7063.tar.gz
libcore-936ed499f3eb0c7a9c993388a86e8808389c7063.tar.bz2
Merge change 9368
* changes: libcore/.../rg_apache_harmony_xml_ExpatParser: in C++, the return type of strchr(const char*) is 'const char*' instead of 'char *'.
Diffstat (limited to 'xml')
-rw-r--r--xml/src/main/native/org_apache_harmony_xml_ExpatParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xml/src/main/native/org_apache_harmony_xml_ExpatParser.cpp b/xml/src/main/native/org_apache_harmony_xml_ExpatParser.cpp
index 7149272..40a4116 100644
--- a/xml/src/main/native/org_apache_harmony_xml_ExpatParser.cpp
+++ b/xml/src/main/native/org_apache_harmony_xml_ExpatParser.cpp
@@ -479,7 +479,7 @@ static void bufferAndInvoke(jmethodID method, void* data, const char* text,
* @returns index of the separator
*/
static int findSeparator(const char* s) {
- char* pointer = strchr(s, '|');
+ const char* pointer = strchr(s, '|');
return pointer == NULL ? -1 : pointer - s;
}