Skip to content

Commit

Permalink
Remove the 'restrict' attribute from argument types.
Browse files Browse the repository at this point in the history
  • Loading branch information
matttyson committed Jul 25, 2010
1 parent a0f9d32 commit 619d0d5
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/Core/Controls/MTEveSkillCell.m
Expand Up @@ -244,9 +244,9 @@ - (NSRect)imageRectForBounds:(NSRect)bounds {


// Level 4 etc (text string) bounding box
-(NSRect) skillTimeLeftRect:(const NSRect* restrict)bounds
skillBoxRect:(const NSRect* restrict)skillBoxRect
topString:(NSAttributedString* restrict)topStr
-(NSRect) skillTimeLeftRect:(const NSRect*)bounds
skillBoxRect:(const NSRect*)skillBoxRect
topString:(NSAttributedString*)topStr
{
NSSize size = [topStr size];
NSRect result = NSMakeRect(skillBoxRect->origin.x - TEXT_RIGHT_PADDING - size.width,
Expand All @@ -257,9 +257,9 @@ -(NSRect) skillTimeLeftRect:(const NSRect* restrict)bounds


//2d 20h 38m 15s etc (text string) bounding box
-(NSRect) skillTimeLeftRect:(const NSRect* restrict)bounds
skillBoxRect:(const NSRect* restrict)skillBoxRect
bottomString:(NSAttributedString* restrict)topStr
-(NSRect) skillTimeLeftRect:(const NSRect*)bounds
skillBoxRect:(const NSRect*)skillBoxRect
bottomString:(NSAttributedString*)topStr
{
NSSize size = [topStr size];
NSRect result = NSMakeRect(skillBoxRect->origin.x - TEXT_RIGHT_PADDING - size.width,
Expand Down Expand Up @@ -328,8 +328,8 @@ -(void) drawSkillCompletionProgress:(NSRect)bounds
Give the location of the rect for drawing the skill
box rectangle
*/
-(NSRect) skillBoxRect:(const NSRect* restrict)bounds
infoRect:(const NSRect* restrict)infoRect
-(NSRect) skillBoxRect:(const NSRect*)bounds
infoRect:(const NSRect*)infoRect
yOffset:(CGFloat)yOffset
{
NSRect result;
Expand All @@ -345,8 +345,8 @@ -(NSRect) skillBoxRect:(const NSRect* restrict)bounds
}

/*draw the rectangle that surrounds the skill progress bar*/
-(NSRect) skillProgressRect:(const NSRect* restrict)bounds
infoRect:(const NSRect* restrict)infoRect
-(NSRect) skillProgressRect:(const NSRect*)bounds
infoRect:(const NSRect*)infoRect
yOffset:(CGFloat)yOffset
{
NSRect result;
Expand Down Expand Up @@ -428,8 +428,8 @@ - (NSRect) infoButtonRect:(NSRect)bounds;
return result;
}

- (NSRect)upperRectForBounds:(const NSRect* restrict)bounds
andString:(NSAttributedString* restrict)title
- (NSRect)upperRectForBounds:(const NSRect*)bounds
andString:(NSAttributedString*)title
{
NSRect result = *bounds;
// The x origin is easy
Expand Down

0 comments on commit 619d0d5

Please sign in to comment.