diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-03-21 12:19:06 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-03-21 21:15:42 +0100 |
commit | 5333d8554be855af7b78cdd47d19e8d31abd47c3 (patch) | |
tree | 394b869a472fa19a354c7392b5cbbc0d6969aa0a /src/resources/image.h | |
parent | 7a110c36b58478b633a694ba74a1cb17d237c3df (diff) | |
download | mana-5333d8554be855af7b78cdd47d19e8d31abd47c3.tar.gz mana-5333d8554be855af7b78cdd47d19e8d31abd47c3.tar.bz2 mana-5333d8554be855af7b78cdd47d19e8d31abd47c3.tar.xz mana-5333d8554be855af7b78cdd47d19e8d31abd47c3.zip |
Use std::function in ResourceManager
Simplifies the code a little.
Also use ResourceRef in SubImage to avoid manual reference counting.
Diffstat (limited to 'src/resources/image.h')
-rw-r--r-- | src/resources/image.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/image.h b/src/resources/image.h index 20a85433..de759612 100644 --- a/src/resources/image.h +++ b/src/resources/image.h @@ -226,7 +226,7 @@ class SubImage : public Image ~SubImage() override; private: - Image *mParent; + ResourceRef<Image> mParent; }; #endif |