diff options
Diffstat (limited to 'indra/llimage/llimage.cpp')
| -rw-r--r-- | indra/llimage/llimage.cpp | 34 | 
1 files changed, 12 insertions, 22 deletions
| diff --git a/indra/llimage/llimage.cpp b/indra/llimage/llimage.cpp index 680fbf548f..9dea876114 100644 --- a/indra/llimage/llimage.cpp +++ b/indra/llimage/llimage.cpp @@ -583,39 +583,29 @@ static void bilinear_scale(const U8 *src, U32 srcW, U32 srcH, U32 srcCh, U32 src  // LLImage  //--------------------------------------------------------------------------- -//static -std::string LLImage::sLastErrorMessage; -LLMutex* LLImage::sMutex = NULL; -bool LLImage::sUseNewByteRange = false; -S32  LLImage::sMinimalReverseByteRangePercent = 75; - -//static -void LLImage::initClass(bool use_new_byte_range, S32 minimal_reverse_byte_range_percent) +LLImage::LLImage(bool use_new_byte_range, S32 minimal_reverse_byte_range_percent)  { -	sUseNewByteRange = use_new_byte_range; -    sMinimalReverseByteRangePercent = minimal_reverse_byte_range_percent; -	sMutex = new LLMutex(); +    mMutex = new LLMutex(); +    mUseNewByteRange = use_new_byte_range; +    mMinimalReverseByteRangePercent = minimal_reverse_byte_range_percent;  } -//static -void LLImage::cleanupClass() +LLImage::~LLImage()  { -	delete sMutex; -	sMutex = NULL; +    delete mMutex; +    mMutex = NULL;  } -//static -const std::string& LLImage::getLastError() +const std::string& LLImage::getLastErrorMessage()  {  	static const std::string noerr("No Error"); -	return sLastErrorMessage.empty() ? noerr : sLastErrorMessage; +	return mLastErrorMessage.empty() ? noerr : mLastErrorMessage;  } -//static -void LLImage::setLastError(const std::string& message) +void LLImage::setLastErrorMessage(const std::string& message)  { -	LLMutexLock m(sMutex); -	sLastErrorMessage = message; +	LLMutexLock m(mMutex); +	mLastErrorMessage = message;  }  //--------------------------------------------------------------------------- | 
