aboutsummaryrefslogtreecommitdiffhomepage
path: root/objectivec/GPBDescriptor.m
diff options
context:
space:
mode:
authorGravatar Sergio Campamá <kaipi@google.com>2018-06-05 15:14:19 -0400
committerGravatar Adam Cozzette <acozzette@google.com>2018-06-05 13:49:21 -0700
commita3f31bf0e2b74a5b29cbde36ee0d45937f76fda6 (patch)
treeca05210736f5396f02f49d046b0e01ea54a10f3d /objectivec/GPBDescriptor.m
parent7e199b9e3501c2a34eeb28fd7eecde46086ad65f (diff)
Update code to work for Xcode 10b1 (#4729)
* Update code to work for Xcode 10b * Update README and test scripts to mention that Xcode 7 is no longer supported
Diffstat (limited to 'objectivec/GPBDescriptor.m')
-rw-r--r--objectivec/GPBDescriptor.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/objectivec/GPBDescriptor.m b/objectivec/GPBDescriptor.m
index 615d2234..4b39c63b 100644
--- a/objectivec/GPBDescriptor.m
+++ b/objectivec/GPBDescriptor.m
@@ -411,7 +411,7 @@ static NSArray *NewFieldsArrayForHasIndex(int hasIndex,
}
- (NSString *)name {
- return @(name_);
+ return (NSString * _Nonnull)@(name_);
}
- (GPBFieldDescriptor *)fieldWithNumber:(uint32_t)fieldNumber {
@@ -582,7 +582,7 @@ uint32_t GPBFieldAlternateTag(GPBFieldDescriptor *self) {
}
- (NSString *)name {
- return @(description_->name);
+ return (NSString * _Nonnull)@(description_->name);
}
- (BOOL)isRequired {
@@ -998,7 +998,7 @@ uint32_t GPBFieldAlternateTag(GPBFieldDescriptor *self) {
}
- (NSString *)singletonName {
- return @(description_->singletonName);
+ return (NSString * _Nonnull)@(description_->singletonName);
}
- (const char *)singletonNameC {