diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-07 16:18:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-07 16:18:13 +0300 |
commit | 9fe21fcd8883b37bdc30224822e6e42afb35b8f0 (patch) | |
tree | 798117abd4dc7e610997d59d530a96ddc1509f53 /src/resources/subimage.cpp | |
parent | 4429cb14e9e187edef27aba692a4266733f79c17 (diff) | |
download | mv-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.gz mv-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.bz2 mv-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.xz mv-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.zip |
Replace most static_cast<Type> to shorter versions from defines.
Diffstat (limited to 'src/resources/subimage.cpp')
-rw-r--r-- | src/resources/subimage.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/resources/subimage.cpp b/src/resources/subimage.cpp index 33177909b..af579e4ec 100644 --- a/src/resources/subimage.cpp +++ b/src/resources/subimage.cpp @@ -60,10 +60,10 @@ SubImage::SubImage(Image *const parent, } // Set up the rectangle. - mBounds.x = static_cast<int16_t>(x); - mBounds.y = static_cast<int16_t>(y); - mBounds.w = static_cast<uint16_t>(width); - mBounds.h = static_cast<uint16_t>(height); + mBounds.x = CAST_S16(x); + mBounds.y = CAST_S16(y); + mBounds.w = CAST_U16(width); + mBounds.h = CAST_U16(height); if (mParent) { mInternalBounds.x = mParent->mBounds.x; @@ -114,10 +114,10 @@ SubImage::SubImage(Image *const parent, } // Set up the rectangle. - mBounds.x = static_cast<int16_t>(x); - mBounds.y = static_cast<int16_t>(y); - mBounds.w = static_cast<uint16_t>(width); - mBounds.h = static_cast<uint16_t>(height); + mBounds.x = CAST_S16(x); + mBounds.y = CAST_S16(y); + mBounds.w = CAST_U16(width); + mBounds.h = CAST_U16(height); if (mParent) { mInternalBounds.x = mParent->mBounds.x; @@ -149,10 +149,10 @@ SubImage::SubImage(Image *const parent, mParent->incRef(); // Set up the rectangle. - mBounds.x = static_cast<int16_t>(x); - mBounds.y = static_cast<int16_t>(y); - mBounds.w = static_cast<uint16_t>(width); - mBounds.h = static_cast<uint16_t>(height); + mBounds.x = CAST_S16(x); + mBounds.y = CAST_S16(y); + mBounds.w = CAST_U16(width); + mBounds.h = CAST_U16(height); if (mParent) { mInternalBounds.x = mParent->mBounds.x; |