]> git.saurik.com Git - apple/xnu.git/blobdiff - libkern/c++/OSUnserializeXML.y
xnu-4570.51.1.tar.gz
[apple/xnu.git] / libkern / c++ / OSUnserializeXML.y
index 23e64137c5a32973d11a2bfc93328cdb942afa4c..5bd2167702f45ef755615ee5288e63777feb2bbd 100644 (file)
@@ -1158,7 +1158,7 @@ buildSymbol(parser_state_t *state, object_t *o)
 {
        OSSymbol *symbol;
 
-       symbol = (OSSymbol *)OSSymbol::withCString(o->string);
+       symbol = const_cast<OSSymbol *>(OSSymbol::withCString(o->string));
        if (o->idref >= 0) rememberObject(state, o->idref, symbol);
 
        free(o->string);