summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/imageset.cpp2
-rw-r--r--src/resources/imageset.h5
2 files changed, 3 insertions, 4 deletions
diff --git a/src/resources/imageset.cpp b/src/resources/imageset.cpp
index 4eec23f8..34cf1fd8 100644
--- a/src/resources/imageset.cpp
+++ b/src/resources/imageset.cpp
@@ -46,7 +46,7 @@ ImageSet::~ImageSet()
delete_all(mImages);
}
-Image *ImageSet::get(size_type i) const
+Image *ImageSet::get(size_t i) const
{
if (i >= mImages.size())
{
diff --git a/src/resources/imageset.h b/src/resources/imageset.h
index 8f377369..6c7d59ab 100644
--- a/src/resources/imageset.h
+++ b/src/resources/imageset.h
@@ -51,10 +51,9 @@ class ImageSet : public Resource
*/
int getHeight() const { return mHeight; }
- using size_type = std::vector<Image *>::size_type;
- Image *get(size_type i) const;
+ Image *get(size_t i) const;
- size_type size() const { return mImages.size(); }
+ size_t size() const { return mImages.size(); }
int getOffsetX() const
{ return mOffsetX; }