mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 16:51:08 +00:00
[plist] Remove incorrect const from PL_RemoveObjectForKey
I'm not sure what I was thinking when I made PL_RemoveObjectForKey take a const plitem. One of those times where C could do with being a little more strict.
This commit is contained in:
parent
ca9566a425
commit
032f9971ed
2 changed files with 2 additions and 2 deletions
|
@ -196,7 +196,7 @@ plitem_t *PL_ObjectForKey (const plitem_t *dict, const char *key);
|
||||||
isn't a dictionary (includes if \a dict is null).
|
isn't a dictionary (includes if \a dict is null).
|
||||||
\note You are responsible for freeing the returned object.
|
\note You are responsible for freeing the returned object.
|
||||||
*/
|
*/
|
||||||
plitem_t *PL_RemoveObjectForKey (const plitem_t *dict, const char *key);
|
plitem_t *PL_RemoveObjectForKey (plitem_t *dict, const char *key);
|
||||||
|
|
||||||
/** Retrieve a key from a dictionary object.
|
/** Retrieve a key from a dictionary object.
|
||||||
|
|
||||||
|
|
|
@ -312,7 +312,7 @@ PL_KeyAtIndex (const plitem_t *item, int index)
|
||||||
}
|
}
|
||||||
|
|
||||||
VISIBLE plitem_t *
|
VISIBLE plitem_t *
|
||||||
PL_RemoveObjectForKey (const plitem_t *item, const char *key)
|
PL_RemoveObjectForKey (plitem_t *item, const char *key)
|
||||||
{
|
{
|
||||||
if (!item || item->type != QFDictionary) {
|
if (!item || item->type != QFDictionary) {
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue