Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
4d5d3bcc
Commit
4d5d3bcc
authored
Jun 15, 2015
by
Felix Paul Kühne
Browse files
shared instances: cosmetics
parent
8ba6961c
Changes
9
Hide whitespace changes
Inline
Side-by-side
Sources/Reachability.m
View file @
4d5d3bcc
...
...
@@ -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
;
...
...
Sources/VLCAppDelegate.m
View file @
4d5d3bcc
...
...
@@ -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
];
...
...
Sources/VLCBoxController.m
View file @
4d5d3bcc
...
...
@@ -46,7 +46,7 @@
static
dispatch_once_t
pred
;
dispatch_once
(
&
pred
,
^
{
sharedInstance
=
[
self
new
];
sharedInstance
=
[
VLCBoxController
new
];
});
return
sharedInstance
;
...
...
Sources/VLCDropboxController.m
View file @
4d5d3bcc
...
...
@@ -43,7 +43,7 @@
static
dispatch_once_t
pred
;
dispatch_once
(
&
pred
,
^
{
sharedInstance
=
[
self
new
];
sharedInstance
=
[
VLCDropboxController
new
];
});
return
sharedInstance
;
...
...
Sources/VLCGoogleDriveController.m
View file @
4d5d3bcc
...
...
@@ -45,7 +45,7 @@
static
dispatch_once_t
pred
;
dispatch_once
(
&
pred
,
^
{
sharedInstance
=
[
self
new
];
sharedInstance
=
[
VLCGoogleDriveController
new
];
});
return
sharedInstance
;
...
...
Sources/VLCHTTPUploaderController.m
View file @
4d5d3bcc
...
...
@@ -33,7 +33,7 @@
static
dispatch_once_t
pred
;
dispatch_once
(
&
pred
,
^
{
sharedInstance
=
[
self
new
];
sharedInstance
=
[
VLCHTTPUploaderController
new
];
});
return
sharedInstance
;
...
...
Sources/VLCOneDriveController.m
View file @
4d5d3bcc
...
...
@@ -47,7 +47,7 @@
static
dispatch_once_t
pred
;
dispatch_once
(
&
pred
,
^
{
sharedInstance
=
[[
self
alloc
]
init
];
sharedInstance
=
[[
VLCOneDriveController
alloc
]
init
];
});
return
sharedInstance
;
...
...
Sources/VLCPlaybackController.m
View file @
4d5d3bcc
...
...
@@ -73,7 +73,7 @@ NSString *const VLCPlaybackControllerPlaybackDidFail = @"VLCPlaybackControllerPl
static
dispatch_once_t
pred
;
dispatch_once
(
&
pred
,
^
{
sharedInstance
=
[
self
new
];
sharedInstance
=
[
VLCPlaybackController
new
];
});
return
sharedInstance
;
...
...
Sources/VLCSidebarController.m
View file @
4d5d3bcc
...
...
@@ -27,7 +27,7 @@
static
dispatch_once_t
pred
;
dispatch_once
(
&
pred
,
^
{
sharedInstance
=
[
self
new
];
sharedInstance
=
[
VLCSidebarController
new
];
});
return
sharedInstance
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment