File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ namespace chesspp
30
30
inline ~ResourceManager () {}
31
31
32
32
// 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;
34
34
35
35
public:
36
36
// ************************************
@@ -42,7 +42,7 @@ namespace chesspp
42
42
// Deletes the entry of a key in the resource map.
43
43
// This will call deleter_type to deallocate the resource from memory as well.
44
44
// ************************************
45
- void Free (const std::string &key) {
45
+ void Free (const key_type &key) {
46
46
map_i i = m_map.find (key);
47
47
m_map.erase (i);
48
48
}
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ namespace chesspp
56
56
// Parameter: const std::string & location
57
57
// Method that loads an sf::Texture from file name 'location'.
58
58
// ************************************
59
- sf::Texture *onLoadResource (const std::string &location)
59
+ virtual sf::Texture *onLoadResource (const std::string &location)
60
60
{
61
61
sf::Texture *ret = new sf::Texture ();
62
62
if (!ret->loadFromFile (location))
You can’t perform that action at this time.
0 commit comments