[util] Make PL_String const correct

This commit is contained in:
Bill Currie 2020-07-16 22:02:26 +09:00
parent 72f583f16f
commit ef33adac56
2 changed files with 2 additions and 2 deletions

View file

@ -147,7 +147,7 @@ int PL_Line (plitem_t *item) __attribute__((pure));
\note You are NOT responsible for freeing the returned object. It will
be destroyed when its container is.
*/
const char *PL_String (plitem_t *string) __attribute__((pure));
const char *PL_String (const plitem_t *string) __attribute__((pure));
/** Retrieve a value from a dictionary object.

View file

@ -232,7 +232,7 @@ PL_Free (plitem_t *item)
}
VISIBLE const char *
PL_String (plitem_t *string)
PL_String (const plitem_t *string)
{
if (string->type != QFString)
return NULL;