Fix lots of warnings reported by Clang.
Mostly potentially lossy implicit conversions in headers (long->int). Also dangling else warnings. Struct/class mismatches. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -965,6 +965,7 @@ outlineView:(NSOutlineView*)outlineView
|
||||
delete[] dataFormats;
|
||||
delete itemObject;
|
||||
if (dataStringAvailable)
|
||||
{
|
||||
if (itemStringAvailable)
|
||||
{
|
||||
if (itemCounter > 0)
|
||||
@@ -973,6 +974,7 @@ outlineView:(NSOutlineView*)outlineView
|
||||
}
|
||||
else
|
||||
dataStringAvailable = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1701,7 +1703,7 @@ outlineView:(NSOutlineView*)outlineView
|
||||
NSArray* sortDescriptors;
|
||||
NSSortDescriptor* sortDescriptor;
|
||||
|
||||
sortDescriptor = [[NSSortDescriptor alloc] initWithKey:[NSString stringWithFormat:@"%d",[outlineView columnWithIdentifier:[tableColumn identifier]]]
|
||||
sortDescriptor = [[NSSortDescriptor alloc] initWithKey:[NSString stringWithFormat:@"%ld",(long)[outlineView columnWithIdentifier:[tableColumn identifier]]]
|
||||
ascending:YES];
|
||||
sortDescriptors = [NSArray arrayWithObject:sortDescriptor];
|
||||
[tableColumn setSortDescriptorPrototype:sortDescriptor];
|
||||
|
Reference in New Issue
Block a user