aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/objective-c
diff options
context:
space:
mode:
authorGravatar Makarand Dharmapurikar <makarandd@google.com>2016-06-23 14:02:33 -0700
committerGravatar Makarand Dharmapurikar <makarandd@google.com>2016-06-23 14:02:33 -0700
commit5a3c6389edeaf19e7e0f0a6c0771c7548f0e0997 (patch)
tree6c683949ed89e91bb221777567d496d16bca7798 /examples/objective-c
parentabd285aed813ff55329e76a9dc19eb3a1bc86166 (diff)
Added braces around _service
Diffstat (limited to 'examples/objective-c')
-rw-r--r--examples/objective-c/route_guide/ViewControllers.m20
1 files changed, 12 insertions, 8 deletions
diff --git a/examples/objective-c/route_guide/ViewControllers.m b/examples/objective-c/route_guide/ViewControllers.m
index 26ca9d6220..b2f99c437e 100644
--- a/examples/objective-c/route_guide/ViewControllers.m
+++ b/examples/objective-c/route_guide/ViewControllers.m
@@ -86,8 +86,9 @@ static NSString * const kHostAddress = @"localhost:50051";
@end
-@implementation GetFeatureViewController
-RTGRouteGuide *_service;
+@implementation GetFeatureViewController {
+ RTGRouteGuide *_service;
+}
- (void)execRequest {
void (^handler)(RTGFeature *response, NSError *error) = ^(RTGFeature *response, NSError *error) {
@@ -146,8 +147,9 @@ RTGRouteGuide *_service;
@end
-@implementation ListFeaturesViewController
-RTGRouteGuide *_service;
+@implementation ListFeaturesViewController {
+ RTGRouteGuide *_service;
+}
- (void)execRequest {
RTGRectangle *rectangle = [RTGRectangle message];
@@ -200,8 +202,9 @@ RTGRouteGuide *_service;
@end
-@implementation RecordRouteViewController
-RTGRouteGuide *_service;
+@implementation RecordRouteViewController {
+ RTGRouteGuide *_service;
+}
- (void)execRequest {
NSString *dataBasePath = [NSBundle.mainBundle pathForResource:@"route_guide_db"
@@ -268,8 +271,9 @@ RTGRouteGuide *_service;
@end
-@implementation RouteChatViewController
-RTGRouteGuide *_service;
+@implementation RouteChatViewController {
+ RTGRouteGuide *_service;
+}
- (void)execRequest {
NSArray *notes = @[[RTGRouteNote noteWithMessage:@"First message" latitude:0 longitude:0],