Skip to content

Commit b466f3c

Browse files
tamlin-mikeXottab-DUTY
authored andcommitted
const-correctness for get_token_name() and get_token_id()
1 parent 3e1e4e6 commit b466f3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/xrCore/_std_extensions.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@ struct XRCORE_API xr_token
7272
int id;
7373
};
7474

75-
IC LPCSTR get_token_name(xr_token* tokens, int key)
75+
IC LPCSTR get_token_name(const xr_token* tokens, int key)
7676
{
7777
for (int k = 0; tokens[k].name; k++)
7878
if (key == tokens[k].id)
7979
return tokens[k].name;
8080
return "";
8181
}
8282

83-
IC int get_token_id(xr_token* tokens, LPCSTR key)
83+
IC int get_token_id(const xr_token* tokens, LPCSTR key)
8484
{
8585
for (int k = 0; tokens[k].name; k++)
8686
if (_stricmp(tokens[k].name, key) == 0)

0 commit comments

Comments
 (0)