mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 14:29:21 +00:00
correct use of NSNumber constructor for NSTimeInterval;remove superfluous semicolons;fix data type conversion related compiler warnings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36900 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e7da6a6bc9
commit
7a537da7c0
@ -103,7 +103,7 @@ NSString* LinkBackEditNoneMenuTitle()
|
||||
|
||||
+ (NSDictionary*)linkBackDataWithServerName:(NSString*)serverName appData:(id)appData
|
||||
{
|
||||
return [self linkBackDataWithServerName: serverName appData: appData actionName: nil suggestedRefreshRate: 0];
|
||||
return [self linkBackDataWithServerName: serverName appData: appData actionName: nil suggestedRefreshRate: (float)0];
|
||||
}
|
||||
|
||||
+ (NSDictionary*)linkBackDataWithServerName:(NSString*)serverName appData:(id)appData suggestedRefreshRate:(NSTimeInterval)rate
|
||||
@ -111,7 +111,7 @@ NSString* LinkBackEditNoneMenuTitle()
|
||||
return [self linkBackDataWithServerName: serverName appData: appData actionName: LinkBackRefreshActionName suggestedRefreshRate: rate] ;
|
||||
}
|
||||
|
||||
+ (NSDictionary*)linkBackDataWithServerName:(NSString*)serverName appData:(id)appData actionName:(NSString*)action suggestedRefreshRate:(NSTimeInterval)rate ;
|
||||
+ (NSDictionary*)linkBackDataWithServerName:(NSString*)serverName appData:(id)appData actionName:(NSString*)action suggestedRefreshRate:(NSTimeInterval)rate
|
||||
{
|
||||
NSDictionary* appInfo = [[NSBundle mainBundle] infoDictionary] ;
|
||||
|
||||
@ -133,7 +133,7 @@ NSString* LinkBackEditNoneMenuTitle()
|
||||
if (action) [ret setObject: action forKey: LinkBackServerActionKey] ;
|
||||
if (appData) [ret setObject: appData forKey: LinkBackApplicationDataKey] ;
|
||||
if (url) [ret setObject: url forKey: LinkBackApplicationURLKey] ;
|
||||
[ret setObject: [NSNumber numberWithFloat: rate] forKey: LinkBackSuggestedRefreshKey] ;
|
||||
[ret setObject: [NSNumber numberWithDouble: rate] forKey: LinkBackSuggestedRefreshKey] ;
|
||||
|
||||
return [ret autorelease] ;
|
||||
}
|
||||
@ -236,7 +236,7 @@ NSMutableDictionary* keyedLinkBacks = nil ;
|
||||
return self ;
|
||||
}
|
||||
|
||||
- (id)initClientWithSourceName:(NSString*)aName delegate:(id<LinkBackClientDelegate>)aDel itemKey:(NSString*)aKey ;
|
||||
- (id)initClientWithSourceName:(NSString*)aName delegate:(id<LinkBackClientDelegate>)aDel itemKey:(NSString*)aKey
|
||||
{
|
||||
if ((self = [super init])) {
|
||||
isServer = NO ;
|
||||
|
@ -72,7 +72,7 @@ NSMutableDictionary* LinkBackServers = nil ;
|
||||
BOOL LinkBackServerIsSupported(NSString* name, id supportedServers)
|
||||
{
|
||||
BOOL ret = NO ;
|
||||
int idx ;
|
||||
NSUInteger idx ;
|
||||
NSString* curServer = supportedServers ;
|
||||
|
||||
// NOTE: supportedServers may be nil, an NSArray, or NSString.
|
||||
@ -99,15 +99,15 @@ NSString* FindLinkBackServer(NSString* bundleIdentifier, NSString* serverName, N
|
||||
#else
|
||||
NSArray* contents = [fm directoryContentsAtPath: dir] ;
|
||||
#endif
|
||||
int idx ;
|
||||
|
||||
NSLog(@"searching for %@ in folder: %@", serverName, dir) ;
|
||||
NSUInteger idx ;
|
||||
|
||||
// working info
|
||||
NSString* cpath ;
|
||||
NSBundle* cbundle ;
|
||||
NSString* cbundleIdentifier ;
|
||||
id supportedServers ;
|
||||
|
||||
NSLog(@"searching for %@ in folder: %@", serverName, dir) ;
|
||||
|
||||
// resolve any symlinks, expand tildes.
|
||||
dir = [dir stringByStandardizingPath] ;
|
||||
@ -173,7 +173,7 @@ void LinkBackRunAppNotFoundPanel(NSString* appName, NSURL* url)
|
||||
}
|
||||
}
|
||||
|
||||
+ (LinkBackServer*)LinkBackServerWithName:(NSString*)aName inApplication:(NSString*)bundleIdentifier launchIfNeeded:(BOOL)flag fallbackURL:(NSURL*)url appName:(NSString*)appName ;
|
||||
+ (LinkBackServer*)LinkBackServerWithName:(NSString*)aName inApplication:(NSString*)bundleIdentifier launchIfNeeded:(BOOL)flag fallbackURL:(NSURL*)url appName:(NSString*)appName
|
||||
{
|
||||
BOOL connect = YES ;
|
||||
NSString* serverName = MakeLinkBackServerName(bundleIdentifier, aName) ;
|
||||
|
Loading…
Reference in New Issue
Block a user