Intialize variables, or GCC complains they might be used w/o initialization.
parent
45ecc629c6
commit
fcd11b1c1e
|
|
@ -288,7 +288,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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2331,7 +2331,7 @@ void LLPanelFace::LLSelectedTE::getFace(LLFace*& face_to_return, bool& identical
|
|||
|
||||
void LLPanelFace::LLSelectedTE::getImageFormat(LLGLenum& image_format_to_return, bool& identical_face)
|
||||
{
|
||||
LLGLenum image_format;
|
||||
LLGLenum image_format(0);
|
||||
struct LLSelectedTEGetImageFormat : public LLSelectedTEGetFunctor<LLGLenum>
|
||||
{
|
||||
LLGLenum get(LLViewerObject* object, S32 te_index)
|
||||
|
|
|
|||
|
|
@ -379,7 +379,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 = default_value;
|
||||
struct GetTEMaterialVal : public LLSelectedTEGetFunctor<DataType>
|
||||
{
|
||||
GetTEMaterialVal(DataType default_value) : _default(default_value) {}
|
||||
|
|
@ -412,7 +412,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 = default_value;
|
||||
struct GetTEVal : public LLSelectedTEGetFunctor<DataType>
|
||||
{
|
||||
GetTEVal(DataType default_value) : _default(default_value) {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue