mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 21:06:59 -04:00
More warnings/minor fixes
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@836 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -575,4 +575,4 @@ String IncludePackage::typeName() const { return _("include"); }
|
||||
|
||||
IMPLEMENT_REFLECTION(IncludePackage) {
|
||||
REFLECT_BASE(Packaged);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
|
||||
Reader::Reader(const InputStreamP& input, Packaged* package, const String& filename, bool ignore_invalid)
|
||||
: indent(0), expected_indent(0), state(OUTSIDE)
|
||||
, package(package), filename(filename), line_number(0), previous_line_number(0)
|
||||
, ignore_invalid(ignore_invalid)
|
||||
, filename(filename), package(package), line_number(0), previous_line_number(0)
|
||||
, input(input)
|
||||
{
|
||||
moveNext();
|
||||
@@ -27,10 +27,10 @@ Reader::Reader(const InputStreamP& input, Packaged* package, const String& filen
|
||||
|
||||
Reader::Reader(Packaged* pkg, const String& filename)
|
||||
: indent(0), expected_indent(0), state(OUTSIDE)
|
||||
, package(pkg), filename(filename), line_number(0), previous_line_number(0)
|
||||
, ignore_invalid(false)
|
||||
, filename(filename), package(pkg), line_number(0), previous_line_number(0)
|
||||
, input(packages.openFileFromPackage(package, filename))
|
||||
{
|
||||
input = packages.openFileFromPackage(package, filename);
|
||||
moveNext();
|
||||
handleAppVersion();
|
||||
}
|
||||
@@ -175,7 +175,7 @@ String read_utf8_line(wxInputStream& input, bool eat_bom, bool until_eof) {
|
||||
// convert to string
|
||||
buffer.push_back('\0');
|
||||
size_t size = wxConvUTF8.MB2WC(nullptr, buffer.get(), 0);
|
||||
if (size == -1) {
|
||||
if (size == size_t(-1)) {
|
||||
throw ParseError(_("Invalid UTF-8 sequence"));
|
||||
} else if (size == 0) {
|
||||
return _("");
|
||||
|
||||
@@ -163,7 +163,7 @@
|
||||
* When reading the first value declared is the default value
|
||||
*
|
||||
* Currently creates the methods:
|
||||
* - Reader::handle(Enum&
|
||||
* - Reader::handle(Enum&)
|
||||
* - Writer::handle(const Enum&)
|
||||
* - GetDefaultMember::handle(const Enum&)
|
||||
*/
|
||||
|
||||
@@ -286,7 +286,7 @@ void RotatedDC::DrawRoundedRectangle(const RealRect& r, double radius) {
|
||||
|
||||
void RotatedDC::DrawCircle(const RealPoint& center, double radius) {
|
||||
wxPoint p = tr(center);
|
||||
dc.DrawCircle(p.x + 1, p.y + 1, trS(radius));
|
||||
dc.DrawCircle(p.x + 1, p.y + 1, int(trS(radius)));
|
||||
}
|
||||
|
||||
void RotatedDC::DrawEllipticArc(const RealPoint& center, const RealSize& size, double start, double end) {
|
||||
|
||||
Reference in New Issue
Block a user