diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-07-23 00:10:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-07-23 00:10:43 +0300 |
commit | d97189f055798b5b2051c1c5770a3def62747461 (patch) | |
tree | d66a891dba33d2ce1c882e0de7d6145bb2e0326b /src/resources/imageset.cpp | |
parent | 25dce1399e40f24809842303d48ef090439de1e5 (diff) | |
download | plus-d97189f055798b5b2051c1c5770a3def62747461.tar.gz plus-d97189f055798b5b2051c1c5770a3def62747461.tar.bz2 plus-d97189f055798b5b2051c1c5770a3def62747461.tar.xz plus-d97189f055798b5b2051c1c5770a3def62747461.zip |
Improve perfomance in some object constructors.
Diffstat (limited to 'src/resources/imageset.cpp')
-rw-r--r-- | src/resources/imageset.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/imageset.cpp b/src/resources/imageset.cpp index 9e3513e91..4b63d0883 100644 --- a/src/resources/imageset.cpp +++ b/src/resources/imageset.cpp @@ -32,6 +32,8 @@ ImageSet::ImageSet(Image *img, int width, int height, int margin, int spacing) : + mWidth(width), + mHeight(height), mOffsetX(0), mOffsetY(0) { @@ -47,8 +49,6 @@ ImageSet::ImageSet(Image *img, int width, int height, } } } - mWidth = width; - mHeight = height; } ImageSet::~ImageSet() |