Commit 4d5d3bcc authored by Felix Paul Kühne's avatar Felix Paul Kühne

shared instances: cosmetics

parent 8ba6961c
......@@ -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;
......
......@@ -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];
......
......@@ -46,7 +46,7 @@
static dispatch_once_t pred;
dispatch_once(&pred, ^{
sharedInstance = [self new];
sharedInstance = [VLCBoxController new];
});
return sharedInstance;
......
......@@ -43,7 +43,7 @@
static dispatch_once_t pred;
dispatch_once(&pred, ^{
sharedInstance = [self new];
sharedInstance = [VLCDropboxController new];
});
return sharedInstance;
......
......@@ -45,7 +45,7 @@
static dispatch_once_t pred;
dispatch_once(&pred, ^{
sharedInstance = [self new];
sharedInstance = [VLCGoogleDriveController new];
});
return sharedInstance;
......
......@@ -33,7 +33,7 @@
static dispatch_once_t pred;
dispatch_once(&pred, ^{
sharedInstance = [self new];
sharedInstance = [VLCHTTPUploaderController new];
});
return sharedInstance;
......
......@@ -47,7 +47,7 @@
static dispatch_once_t pred;
dispatch_once(&pred, ^{
sharedInstance = [[self alloc] init];
sharedInstance = [[VLCOneDriveController alloc] init];
});
return sharedInstance;
......
......@@ -73,7 +73,7 @@ NSString *const VLCPlaybackControllerPlaybackDidFail = @"VLCPlaybackControllerPl
static dispatch_once_t pred;
dispatch_once(&pred, ^{
sharedInstance = [self new];
sharedInstance = [VLCPlaybackController new];
});
return sharedInstance;
......
......@@ -27,7 +27,7 @@
static dispatch_once_t pred;
dispatch_once(&pred, ^{
sharedInstance = [self new];
sharedInstance = [VLCSidebarController new];
});
return sharedInstance;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment