Bladeren bron

shared instances: cosmetics

Felix Paul Kühne 10 jaren geleden
bovenliggende
commit
4d5d3bcc31

+ 2 - 2
Sources/Reachability.m

@@ -114,7 +114,7 @@ static void ReachabilityCallback(SCNetworkReachabilityRef target, SCNetworkReach
 	SCNetworkReachabilityRef reachability = SCNetworkReachabilityCreateWithName(NULL, [hostName UTF8String]);
 	if (reachability != NULL)
 	{
-		returnValue= [[self alloc] init];
+		returnValue= [[Reachability alloc] init];
 		if (returnValue != NULL)
 		{
 			returnValue->reachabilityRef = reachability;
@@ -133,7 +133,7 @@ static void ReachabilityCallback(SCNetworkReachabilityRef target, SCNetworkReach
 
 	if (reachability != NULL)
 	{
-		returnValue = [[self alloc] init];
+		returnValue = [[Reachability alloc] init];
 		if (returnValue != NULL)
 		{
 			returnValue->reachabilityRef = reachability;

+ 2 - 0
Sources/VLCAppDelegate.m

@@ -116,6 +116,8 @@ NSString *const VLCDropboxSessionWasAuthorized = @"VLCDropboxSessionWasAuthorize
     /* clean caches on launch (since those are used for wifi upload only) */
     [self cleanCache];
 
+    [VLCLibrary sharedLibrary];
+
     // Init the HTTP Server
     [VLCHTTPUploaderController sharedInstance];
 

+ 1 - 1
Sources/VLCBoxController.m

@@ -46,7 +46,7 @@
     static dispatch_once_t pred;
 
     dispatch_once(&pred, ^{
-        sharedInstance = [self new];
+        sharedInstance = [VLCBoxController new];
     });
 
     return sharedInstance;

+ 1 - 1
Sources/VLCDropboxController.m

@@ -43,7 +43,7 @@
     static dispatch_once_t pred;
 
     dispatch_once(&pred, ^{
-        sharedInstance = [self new];
+        sharedInstance = [VLCDropboxController new];
     });
 
     return sharedInstance;

+ 1 - 1
Sources/VLCGoogleDriveController.m

@@ -45,7 +45,7 @@
     static dispatch_once_t pred;
 
     dispatch_once(&pred, ^{
-        sharedInstance = [self new];
+        sharedInstance = [VLCGoogleDriveController new];
     });
 
     return sharedInstance;

+ 1 - 1
Sources/VLCHTTPUploaderController.m

@@ -33,7 +33,7 @@
     static dispatch_once_t pred;
 
     dispatch_once(&pred, ^{
-        sharedInstance = [self new];
+        sharedInstance = [VLCHTTPUploaderController new];
     });
 
     return sharedInstance;

+ 1 - 1
Sources/VLCOneDriveController.m

@@ -47,7 +47,7 @@
     static dispatch_once_t pred;
 
     dispatch_once(&pred, ^{
-        sharedInstance = [[self alloc] init];
+        sharedInstance = [[VLCOneDriveController alloc] init];
     });
 
     return sharedInstance;

+ 1 - 1
Sources/VLCPlaybackController.m

@@ -73,7 +73,7 @@ NSString *const VLCPlaybackControllerPlaybackDidFail = @"VLCPlaybackControllerPl
     static dispatch_once_t pred;
 
     dispatch_once(&pred, ^{
-        sharedInstance = [self new];
+        sharedInstance = [VLCPlaybackController new];
     });
 
     return sharedInstance;

+ 1 - 1
Sources/VLCSidebarController.m

@@ -27,7 +27,7 @@
     static dispatch_once_t pred;
 
     dispatch_once(&pred, ^{
-        sharedInstance = [self new];
+        sharedInstance = [VLCSidebarController new];
     });
 
     return sharedInstance;