From fd3223578c0a0789627a92cc63235c24e75f87c3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 8 Apr 2017 20:30:40 +0300 Subject: Remove most setters and getters from Resource class. --- src/resources/image/subimage.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/resources/image/subimage.cpp') diff --git a/src/resources/image/subimage.cpp b/src/resources/image/subimage.cpp index 32e781af7..20ed676d7 100644 --- a/src/resources/image/subimage.cpp +++ b/src/resources/image/subimage.cpp @@ -97,13 +97,13 @@ SubImage::SubImage(Image *const parent, mHasAlphaChannel = mParent->hasAlphaChannel(); mIsAlphaVisible = mHasAlphaChannel; mAlphaChannel = mParent->SDLgetAlphaChannel(); - mSource = parent->getIdPath(); + mSource = parent->mIdPath; #ifdef DEBUG_IMAGES logger->log("set name2 %p, %s", static_cast(this), mSource.c_str()); #endif // DEBUG_IMAGES #ifdef DEBUG_BIND_TEXTURE - mIdPath = parent->getIdPath(); + mIdPath = parent->mIdPath; #endif // DEBUG_BIND_TEXTURE } else @@ -159,13 +159,13 @@ SubImage::SubImage(Image *const parent, mInternalBounds.y = mParent->mBounds.y; mInternalBounds.w = mParent->mBounds.w; mInternalBounds.h = mParent->mBounds.h; - mSource = parent->getIdPath(); + mSource = parent->mIdPath; #ifdef DEBUG_IMAGES logger->log("set name2 %p, %s", static_cast(this), mSource.c_str()); #endif // DEBUG_IMAGES #ifdef DEBUG_BIND_TEXTURE - mIdPath = parent->getIdPath(); + mIdPath = parent->mIdPath; #endif // DEBUG_BIND_TEXTURE } else -- cgit v1.2.3-60-g2f50