mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Fix some Clang warnings
This commit is contained in:
parent
88d0a967f8
commit
53ffeddf52
5 changed files with 7 additions and 7 deletions
|
|
@ -37,7 +37,7 @@ static void sync_address_book (ABAddressBookRef addressBook, CFDictionaryRef inf
|
|||
self = [super initWithNibName:@"ContactDetailsViewController" bundle:[NSBundle mainBundle]];
|
||||
if(self != nil) {
|
||||
inhibUpdate = FALSE;
|
||||
addressBook = ABAddressBookCreate();
|
||||
addressBook = ABAddressBookCreateWithOptions(nil, nil);
|
||||
ABAddressBookRegisterExternalChangeCallback(addressBook, sync_address_book, self);
|
||||
}
|
||||
return self;
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@
|
|||
[LinphoneLogger log:LinphoneLoggerLog format:@"File transfer status code [%i]", statusCode];
|
||||
|
||||
if (statusCode == 200 && !upload) {
|
||||
totalBytesExpectedToRead = [response expectedContentLength];
|
||||
totalBytesExpectedToRead = (int)[response expectedContentLength];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@
|
|||
if([self chatId] != nil) {
|
||||
[chatId release];
|
||||
}
|
||||
chatId = [[NSNumber alloc] initWithInt:sqlite3_last_insert_rowid(database)];
|
||||
chatId = [[NSNumber alloc] initWithInt:(int)sqlite3_last_insert_rowid(database)];
|
||||
sqlite3_finalize(sqlStatement);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -141,8 +141,8 @@
|
|||
[((IASKSwitchEx*)cell.accessoryView) addTarget:self action:@selector(toggledValue:) forControlEvents:UIControlEventValueChanged];
|
||||
[((IASKSwitchEx*)cell.accessoryView) setOnTintColor:LINPHONE_MAIN_COLOR];
|
||||
cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
||||
cell.textLabel.minimumFontSize = kIASKMinimumFontSize;
|
||||
cell.detailTextLabel.minimumFontSize = kIASKMinimumFontSize;
|
||||
cell.textLabel.minimumScaleFactor = kIASKMinimumFontSize/[UIFont systemFontSize];
|
||||
cell.detailTextLabel.minimumScaleFactor = kIASKMinimumFontSize/[UIFont systemFontSize];
|
||||
} else {
|
||||
cell = [super newCellForIdentifier:identifier];
|
||||
}
|
||||
|
|
@ -361,7 +361,7 @@
|
|||
labelTitleView.shadowColor = [UIColor colorWithWhite:1.0 alpha:0.5];
|
||||
labelTitleView.font = [UIFont boldSystemFontOfSize:20];
|
||||
labelTitleView.shadowOffset = CGSizeMake(0,1);
|
||||
labelTitleView.textAlignment = UITextAlignmentCenter;
|
||||
labelTitleView.textAlignment = NSTextAlignmentCenter;
|
||||
labelTitleView.text = viewController.title;
|
||||
[labelTitleView sizeToFit];
|
||||
viewController.navigationItem.titleView = labelTitleView;
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@
|
|||
if (!self.textLabel.text.length) {
|
||||
viewSize = [self.detailTextLabel superview].frame.size;
|
||||
self.detailTextLabel.frame = CGRectMake(kIASKPaddingLeft + imageOffset, 0, viewSize.width - kIASKPaddingLeft - kIASKPaddingRight - imageOffset, viewSize.height);
|
||||
} else if (self.detailTextLabel.textAlignment == UITextAlignmentLeft) {
|
||||
} else if (self.detailTextLabel.textAlignment == NSTextAlignmentLeft) {
|
||||
CGRect valueFrame = self.detailTextLabel.frame;
|
||||
valueFrame.origin.x = labelFrame.origin.x + MAX(kIASKMinLabelWidth - imageOffset, labelWidth) + kIASKSpacing;
|
||||
valueFrame.size.width = self.detailTextLabel.superview.frame.size.width - valueFrame.origin.x - kIASKPaddingRight;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue