Merge pull request #863 from JIghtuse/master
Fix CppCheck 'duplicateExpression' warning
This commit is contained in:
commit
9d5a2cb847
|
@ -674,7 +674,7 @@ static Variant _decode_variant(const String& p_string) {
|
||||||
int w=params[2].to_int();
|
int w=params[2].to_int();
|
||||||
int h=params[3].to_int();
|
int h=params[3].to_int();
|
||||||
|
|
||||||
if (w == 0 && w == 0) {
|
if (w == 0 && h == 0) {
|
||||||
//r_v = Image(w, h, imgformat);
|
//r_v = Image(w, h, imgformat);
|
||||||
return Image();
|
return Image();
|
||||||
};
|
};
|
||||||
|
|
|
@ -580,7 +580,7 @@ static Variant _decode_variant(const String& p_string) {
|
||||||
int w=params[2].to_int();
|
int w=params[2].to_int();
|
||||||
int h=params[3].to_int();
|
int h=params[3].to_int();
|
||||||
|
|
||||||
if (w == 0 && w == 0) {
|
if (w == 0 && h == 0) {
|
||||||
//r_v = Image(w, h, imgformat);
|
//r_v = Image(w, h, imgformat);
|
||||||
return Image();
|
return Image();
|
||||||
};
|
};
|
||||||
|
|
|
@ -571,7 +571,7 @@ Error ResourceInteractiveLoaderXML::parse_property(Variant& r_v, String &r_name)
|
||||||
int w=width.to_int();
|
int w=width.to_int();
|
||||||
int h=height.to_int();
|
int h=height.to_int();
|
||||||
|
|
||||||
if (w == 0 && w == 0) {
|
if (w == 0 && h == 0) {
|
||||||
//r_v = Image(w, h, imgformat);
|
//r_v = Image(w, h, imgformat);
|
||||||
r_v=Image();
|
r_v=Image();
|
||||||
String sdfsdfg;
|
String sdfsdfg;
|
||||||
|
|
Loading…
Reference in New Issue