summaryrefslogtreecommitdiff
path: root/src/compoundsprite.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-14 15:36:47 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-14 15:36:47 +0300
commit0abd36c63a6ffd16e998fe1552f822ca351ef2b2 (patch)
treeef2ee4fd8d9fb0383074ddace03eb76e47f0feb4 /src/compoundsprite.h
parent2c73f0e2300c00ec2e1c26ecb7a6c7a500381f0f (diff)
downloadmv-0abd36c63a6ffd16e998fe1552f822ca351ef2b2.tar.gz
mv-0abd36c63a6ffd16e998fe1552f822ca351ef2b2.tar.bz2
mv-0abd36c63a6ffd16e998fe1552f822ca351ef2b2.tar.xz
mv-0abd36c63a6ffd16e998fe1552f822ca351ef2b2.zip
Replace some size() calls to empty().
Diffstat (limited to 'src/compoundsprite.h')
-rw-r--r--src/compoundsprite.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compoundsprite.h b/src/compoundsprite.h
index 2211cb80c..d1b019057 100644
--- a/src/compoundsprite.h
+++ b/src/compoundsprite.h
@@ -85,6 +85,9 @@ public:
size_t size() const
{ return std::vector<Sprite*>::size(); }
+ bool empty() const
+ { return std::vector<Sprite*>::empty(); }
+
void addSprite(Sprite* sprite);
void setSprite(int layer, Sprite* sprite);