mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
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;
|
const int value;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
// Needed for msvc's debug assertions
|
||||||
bool operator<(extended_range const& lft, extended_range const& rgt) {
|
bool operator<(extended_range const& lft, extended_range const& rgt) {
|
||||||
return lft.codepoint < rgt.codepoint;
|
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) {
|
bool operator<(int lft, extended_range const& rgt) {
|
||||||
return lft < rgt.codepoint;
|
return lft < rgt.codepoint;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
bool operator<(extended_range const& lft, int rgt) {
|
bool operator<(extended_range const& lft, int rgt) {
|
||||||
return lft.codepoint < rgt;
|
return lft.codepoint < rgt;
|
||||||
|
@ -92,7 +92,7 @@ namespace {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
TimecodeValidator(EbuTimecode *target) : value(target) { assert(target); }
|
TimecodeValidator(EbuTimecode *target) : value(target) { assert(target); }
|
||||||
TimecodeValidator(TimecodeValidator const& other) : value(other.value) { }
|
TimecodeValidator(TimecodeValidator const& other) : wxValidator(other), value(other.value) { }
|
||||||
};
|
};
|
||||||
} // namespace {
|
} // namespace {
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ class EnumBinder : public wxValidator {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
explicit EnumBinder(T *value) : value(value) { }
|
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>
|
template<typename T>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user