Skip to content

Commit c042ba0

Browse files
author
Thumperrr
committed
Same update as previous in ResourceManager. Forgot one thing.
1 parent df955bb commit c042ba0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ResourceManager.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace chesspp
3030
inline ~ResourceManager() {}
3131

3232
//pure virtual, defined depending on what is being loaded.
33-
virtual T *onLoadResource(const std::string &key) = 0;
33+
virtual T *onLoadResource(const key_type &key) = 0;
3434

3535
public:
3636
//************************************
@@ -42,7 +42,7 @@ namespace chesspp
4242
// Deletes the entry of a key in the resource map.
4343
// This will call deleter_type to deallocate the resource from memory as well.
4444
//************************************
45-
void Free(const std::string &key) {
45+
void Free(const key_type &key) {
4646
map_i i = m_map.find(key);
4747
m_map.erase(i);
4848
}

src/TextureManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ namespace chesspp
5656
// Parameter: const std::string & location
5757
// Method that loads an sf::Texture from file name 'location'.
5858
//************************************
59-
sf::Texture *onLoadResource(const std::string &location)
59+
virtual sf::Texture *onLoadResource(const std::string &location)
6060
{
6161
sf::Texture *ret = new sf::Texture();
6262
if(!ret->loadFromFile(location))

0 commit comments

Comments
 (0)