mirror of https://github.com/odrling/Aegisub
Fix some warnings when compiling with gcc
This commit is contained in:
parent
d21c33df31
commit
418e1cad98
|
@ -115,6 +115,8 @@ struct extended_range {
|
|||
const int value;
|
||||
};
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// Needed for msvc's debug assertions
|
||||
bool operator<(extended_range const& lft, extended_range const& rgt) {
|
||||
return lft.codepoint < rgt.codepoint;
|
||||
}
|
||||
|
@ -122,6 +124,7 @@ bool operator<(extended_range const& lft, extended_range const& rgt) {
|
|||
bool operator<(int lft, extended_range const& rgt) {
|
||||
return lft < rgt.codepoint;
|
||||
}
|
||||
#endif
|
||||
|
||||
bool operator<(extended_range const& lft, int rgt) {
|
||||
return lft.codepoint < rgt;
|
||||
|
|
|
@ -92,7 +92,7 @@ namespace {
|
|||
|
||||
public:
|
||||
TimecodeValidator(EbuTimecode *target) : value(target) { assert(target); }
|
||||
TimecodeValidator(TimecodeValidator const& other) : value(other.value) { }
|
||||
TimecodeValidator(TimecodeValidator const& other) : wxValidator(other), value(other.value) { }
|
||||
};
|
||||
} // namespace {
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ class EnumBinder : public wxValidator {
|
|||
|
||||
public:
|
||||
explicit EnumBinder(T *value) : value(value) { }
|
||||
EnumBinder(EnumBinder const& rhs) : value(rhs.value) { }
|
||||
EnumBinder(EnumBinder const& rhs) : wxValidator(rhs), value(rhs.value) { }
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
|
|
Loading…
Reference in New Issue