mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Fix enum/int conversion error with 10.10 SDK
10.10 SDK makes NSLineBreakMode into a proper NS_ENUM enum (in 10.9 SDK it was a plain typedef for NSUInteger with some integer NSLineBreak* values conveniently available for it in an anonymous enum). Nevertheless, attr_string code should have always used NSLineBreakMode instead of NSUInteger (unless I am missing something like values in style::line_break::mode that do not correspond to the enum), so this commit makes it so and thus also fixes building with 10.10 SDK.
This commit is contained in:
committed by
Allan Odgaard
parent
2427464f60
commit
72bb6e6eb6
@@ -32,8 +32,8 @@ namespace ns
|
||||
};
|
||||
struct line_break
|
||||
{
|
||||
line_break(NSUInteger mode) : mode(mode) {}
|
||||
NSUInteger mode;
|
||||
line_break(NSLineBreakMode mode) : mode(mode) {}
|
||||
NSLineBreakMode mode;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user