From 73a331b8774168f834e8c8d684e6530b45d8760f Mon Sep 17 00:00:00 2001
From: Petar Popovic <[EMAIL REDACTED]>
Date: Thu, 3 Oct 2024 00:40:17 +0200
Subject: [PATCH] Removed const qualifiers from SDL_CreateHashTable() parameter
types
---
src/SDL_hashtable.c | 10 ++++++----
src/SDL_hashtable.h | 10 +++++-----
2 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/src/SDL_hashtable.c b/src/SDL_hashtable.c
index bc327b75..8e23b17f 100644
--- a/src/SDL_hashtable.c
+++ b/src/SDL_hashtable.c
@@ -55,10 +55,12 @@ struct SDL_HashTable
bool stackable;
};
-SDL_HashTable *SDL_CreateHashTable(void *data, const Uint32 num_buckets, const SDL_HashTable_HashFn hashfn,
- const SDL_HashTable_KeyMatchFn keymatchfn,
- const SDL_HashTable_NukeFn nukefn,
- const bool stackable)
+SDL_HashTable *SDL_CreateHashTable(void *data,
+ Uint32 num_buckets,
+ SDL_HashTable_HashFn hashfn,
+ SDL_HashTable_KeyMatchFn keymatchfn,
+ SDL_HashTable_NukeFn nukefn,
+ bool stackable)
{
SDL_HashTable *table;
diff --git a/src/SDL_hashtable.h b/src/SDL_hashtable.h
index 76f40929..62ff9c79 100644
--- a/src/SDL_hashtable.h
+++ b/src/SDL_hashtable.h
@@ -30,11 +30,11 @@ typedef bool (*SDL_HashTable_KeyMatchFn)(const void *a, const void *b, void *dat
typedef void (*SDL_HashTable_NukeFn)(const void *key, const void *value, void *data);
extern SDL_HashTable *SDL_CreateHashTable(void *data,
- const Uint32 num_buckets,
- const SDL_HashTable_HashFn hashfn,
- const SDL_HashTable_KeyMatchFn keymatchfn,
- const SDL_HashTable_NukeFn nukefn,
- const bool stackable);
+ Uint32 num_buckets,
+ SDL_HashTable_HashFn hashfn,
+ SDL_HashTable_KeyMatchFn keymatchfn,
+ SDL_HashTable_NukeFn nukefn,
+ bool stackable);
extern void SDL_EmptyHashTable(SDL_HashTable *table);
extern void SDL_DestroyHashTable(SDL_HashTable *table);