[Warnings] Fix the "no biggie" warnings
Thanks to friti for providing the pastebin~
This commit is contained in:
@@ -286,7 +286,7 @@ void LLTemplateMessageReader::getU8(const char *block, const char *var,
|
||||
void LLTemplateMessageReader::getBOOL(const char *block, const char *var,
|
||||
BOOL &b, S32 blocknum )
|
||||
{
|
||||
U8 value;
|
||||
U8 value(0);
|
||||
getData(block, var, &value, sizeof(U8), blocknum);
|
||||
b = (BOOL) value;
|
||||
}
|
||||
|
||||
@@ -1282,7 +1282,7 @@ void LLPanelFace::updateUI()
|
||||
|
||||
LLSelectedTE::getFullbright(fullbright_flag,identical_fullbright);
|
||||
|
||||
mCheckFullbright->setValue((S32)(fullbright_flag != 0));
|
||||
mCheckFullbright->setValue(fullbright_flag != 0);
|
||||
mCheckFullbright->setEnabled(editable);
|
||||
mCheckFullbright->setTentative(!identical_fullbright);
|
||||
}
|
||||
@@ -1800,7 +1800,7 @@ void LLPanelFace::onSelectTexture(const LLSD& data)
|
||||
LLSelectMgr::getInstance()->saveSelectedObjectTextures();
|
||||
sendTexture();
|
||||
|
||||
LLGLenum image_format;
|
||||
LLGLenum image_format(0);
|
||||
bool identical_image_format = false;
|
||||
LLSelectedTE::getImageFormat(image_format, identical_image_format);
|
||||
|
||||
|
||||
@@ -304,7 +304,7 @@ private:
|
||||
ReturnType (LLMaterial::* const MaterialGetFunc)() const >
|
||||
static void getTEMaterialValue(DataType& data_to_return, bool& identical,DataType default_value)
|
||||
{
|
||||
DataType data_value;
|
||||
DataType data_value();
|
||||
struct GetTEMaterialVal : public LLSelectedTEGetFunctor<DataType>
|
||||
{
|
||||
GetTEMaterialVal(DataType default_value) : _default(default_value) {}
|
||||
@@ -337,7 +337,7 @@ private:
|
||||
ReturnType (LLTextureEntry::* const TEGetFunc)() const >
|
||||
static void getTEValue(DataType& data_to_return, bool& identical, DataType default_value)
|
||||
{
|
||||
DataType data_value;
|
||||
DataType data_value();
|
||||
struct GetTEVal : public LLSelectedTEGetFunctor<DataType>
|
||||
{
|
||||
GetTEVal(DataType default_value) : _default(default_value) {}
|
||||
|
||||
Reference in New Issue
Block a user