summaryrefslogtreecommitdiff
path: root/src/resources/image.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-21 12:19:06 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-21 21:15:42 +0100
commit5333d8554be855af7b78cdd47d19e8d31abd47c3 (patch)
tree394b869a472fa19a354c7392b5cbbc0d6969aa0a /src/resources/image.h
parent7a110c36b58478b633a694ba74a1cb17d237c3df (diff)
downloadmana-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.h2
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