Merge pull request #59 from dounan/fixbuildwarnings

Fix build warnings
This commit is contained in:
Gennadiy Potapov 2015-03-30 17:35:39 +03:00
commit ae0011d388
2 changed files with 4 additions and 4 deletions

View file

@ -245,7 +245,7 @@ CGFloat SRAnimationEaseInOut(CGFloat t) {
defaultButton:[[error localizedRecoveryOptions] objectAtIndex:0U]
alternateButton:nil
otherButton:nil
informativeTextWithFormat:(reason ? reason : @"")];
informativeTextWithFormat:@"%@", reason ? reason : @""];
}
@end

View file

@ -199,11 +199,11 @@ typedef NSInteger NSWindowAnimationBehavior;
// Create a borderless window that shows and contains the given image:
-(NSWindow*) uli_animationWindowForZoomEffectWithImage: (NSImage*)snapshotImage
-(ULIQuicklyAnimatingWindow*) uli_animationWindowForZoomEffectWithImage: (NSImage*)snapshotImage
{
NSRect myFrame = [self frame];
myFrame.size = [snapshotImage size];
NSWindow * animationWindow = [[ULIQuicklyAnimatingWindow alloc] initWithContentRect: myFrame styleMask: NSBorderlessWindowMask backing: NSBackingStoreBuffered defer: NO];
ULIQuicklyAnimatingWindow * animationWindow = [[ULIQuicklyAnimatingWindow alloc] initWithContentRect: myFrame styleMask: NSBorderlessWindowMask backing: NSBackingStoreBuffered defer: NO];
[animationWindow setOpaque: NO];
if( [animationWindow respondsToSelector: @selector(setAnimationBehavior:)] )
@ -241,7 +241,7 @@ typedef NSInteger NSWindowAnimationBehavior;
NSRect myFrame = [self frame];
NSRect poppedFrame = NSInsetRect(myFrame, -20, -20);
myFrame.size = snapshotImage.size;
NSWindow * animationWindow = [self uli_animationWindowForZoomEffectWithImage: snapshotImage];
ULIQuicklyAnimatingWindow * animationWindow = [self uli_animationWindowForZoomEffectWithImage: snapshotImage];
[animationWindow setAnimationResizeTime: 0.025];
[animationWindow setFrame: myFrame display: YES];
[animationWindow orderFront: nil];