summaryrefslogtreecommitdiff
path: root/platform/iphone/ios.mm
diff options
context:
space:
mode:
authorBastiaanOlij <mux213@gmail.com>2017-04-09 21:22:40 +1000
committerBastiaanOlij <mux213@gmail.com>2017-04-09 21:22:40 +1000
commit5c2ddb299ba1385bae19e16590bd6207e493ace6 (patch)
tree217b35aad58f0909e9915ba9fcdaf0ea6be5694d /platform/iphone/ios.mm
parent21727657ff6df8ebbf5860547ecd3c48f22eefe5 (diff)
Formatting of mm files
Diffstat (limited to 'platform/iphone/ios.mm')
-rw-r--r--platform/iphone/ios.mm13
1 files changed, 5 insertions, 8 deletions
diff --git a/platform/iphone/ios.mm b/platform/iphone/ios.mm
index fe8412d5fd..91e1e20fba 100644
--- a/platform/iphone/ios.mm
+++ b/platform/iphone/ios.mm
@@ -33,7 +33,7 @@
void iOS::_bind_methods() {
- ClassDB::bind_method(D_METHOD("get_rate_url","app_id"),&iOS::get_rate_url);
+ ClassDB::bind_method(D_METHOD("get_rate_url","app_id"), &iOS::get_rate_url);
};
String iOS::get_rate_url(int p_app_id) const {
@@ -44,14 +44,11 @@ String iOS::get_rate_url(int p_app_id) const {
//ios7 before
String ret = templ;
- // iOS 7 needs a different templateReviewURL @see https://github.com/arashpayan/appirater/issues/131
- if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0 && [[[UIDevice currentDevice] systemVersion] floatValue] < 7.1)
- {
+ if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0 && [[[UIDevice currentDevice] systemVersion] floatValue] < 7.1) {
+ // iOS 7 needs a different templateReviewURL @see https://github.com/arashpayan/appirater/issues/131
ret = templ_iOS7;
- }
- // iOS 8 needs a different templateReviewURL also @see https://github.com/arashpayan/appirater/issues/182
- else if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0)
- {
+ } else if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) {
+ // iOS 8 needs a different templateReviewURL also @see https://github.com/arashpayan/appirater/issues/182
ret = templ_iOS8;
}