[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:
Bill Currie 2021-12-06 13:03:49 +09:00
parent ca9566a425
commit 032f9971ed
2 changed files with 2 additions and 2 deletions

View file

@ -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).
\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.

View file

@ -312,7 +312,7 @@ PL_KeyAtIndex (const plitem_t *item, int index)
}
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) {
return NULL;