mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 03:10:38 +00:00
Fix all current compiler warnings on FreeBSD/x86-64.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36038 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
fe0444e231
commit
4850a9feac
41 changed files with 266 additions and 262 deletions
|
@ -192,6 +192,7 @@
|
|||
- (void) setRecentSearches: (NSArray *)searches
|
||||
{
|
||||
int max;
|
||||
NSMutableArray *mutableSearches;
|
||||
|
||||
max = [self maximumRecents];
|
||||
if ([searches count] > max)
|
||||
|
@ -199,13 +200,14 @@
|
|||
id buffer[max];
|
||||
|
||||
[searches getObjects: buffer range: NSMakeRange(0, max)];
|
||||
searches = [NSMutableArray arrayWithObjects: buffer count: max];
|
||||
mutableSearches = [[NSMutableArray alloc] initWithObjects: buffer count: max];
|
||||
}
|
||||
else
|
||||
{
|
||||
searches = [NSMutableArray arrayWithArray: searches];
|
||||
mutableSearches = [[NSMutableArray alloc] initWithArray: searches];
|
||||
}
|
||||
ASSIGN(_recent_searches, searches);
|
||||
[_recent_searches release];
|
||||
_recent_searches = mutableSearches;
|
||||
[self _saveSearches];
|
||||
}
|
||||
|
||||
|
@ -377,8 +379,8 @@
|
|||
inView: (NSView*)controlView
|
||||
editor: (NSText*)textObject
|
||||
delegate: (id)anObject
|
||||
start: (int)selStart
|
||||
length: (int)selLength
|
||||
start: (NSInteger)selStart
|
||||
length: (NSInteger)selLength
|
||||
{
|
||||
// constrain to visible text area
|
||||
[super selectWithFrame: [self searchTextRectForBounds: aRect]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue