fixed MSVC6's "C4702: unreachable code" warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -841,13 +841,11 @@ wxString wxXmlResourceHandler::GetText(const wxString& param, bool translate)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
// If wxXRC_USE_LOCALE is not set, then the string is already in
|
||||||
// If wxXRC_USE_LOCALE is not set, then the string is already in
|
// system's default encoding in ANSI build, so we don't have to
|
||||||
// system's default encoding in ANSI build, so we don't have to
|
// do anything special here.
|
||||||
// do anything special here.
|
return str2;
|
||||||
return str2;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -902,7 +900,8 @@ bool wxXmlResourceHandler::GetBool(const wxString& param, bool defaultv)
|
|||||||
wxString v = GetParamValue(param);
|
wxString v = GetParamValue(param);
|
||||||
v.MakeLower();
|
v.MakeLower();
|
||||||
if (!v) return defaultv;
|
if (!v) return defaultv;
|
||||||
else return (v == wxT("1"));
|
|
||||||
|
return (v == wxT("1"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1120,7 +1119,8 @@ wxSize wxXmlResourceHandler::GetSize(const wxString& param)
|
|||||||
return wxDefaultSize;
|
return wxDefaultSize;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else return wxSize(sx, sy);
|
|
||||||
|
return wxSize(sx, sy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1159,7 +1159,8 @@ wxCoord wxXmlResourceHandler::GetDimension(const wxString& param, wxCoord defaul
|
|||||||
return defaultv;
|
return defaultv;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else return sx;
|
|
||||||
|
return sx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1306,12 +1307,10 @@ wxFont wxXmlResourceHandler::GetFont(const wxString& param)
|
|||||||
m_node = oldnode;
|
m_node = oldnode;
|
||||||
return sysfont;
|
return sysfont;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
m_node = oldnode;
|
||||||
m_node = oldnode;
|
return wxFont(isize, ifamily, istyle, iweight,
|
||||||
return wxFont(isize, ifamily, istyle, iweight,
|
underlined, facename, enc);
|
||||||
underlined, facename, enc);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user