File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -195,8 +195,8 @@ NSMutableArray *StringVectorToNSMutableArray(
195
195
196
196
// Convert a NSArray into a vector of strings. Asserts if a non NSString
197
197
// object is found in the array.
198
- void NSArrayOfNSStringToVectorOfString (NSArray * array,
199
- std::vector<std::string>* string_vector);
198
+ void NSArrayOfNSStringToVectorOfString (NSArray * array,
199
+ std::vector<std::string> * string_vector);
200
200
201
201
// Convert a string map to NSDictionary.
202
202
NSDictionary *StringMapToNSDictionary (
Original file line number Diff line number Diff line change @@ -161,21 +161,20 @@ void ForEachAppDelegateClass(void (^block)(Class)) {
161
161
return array;
162
162
}
163
163
164
- void NSArrayOfNSStringToVectorOfString (NSArray * array, std::vector<std::string>* string_vector) {
164
+ void NSArrayOfNSStringToVectorOfString (NSArray * array, std::vector<std::string> * string_vector) {
165
165
string_vector->reserve (array.count );
166
166
for (id object in array) {
167
- if (![object isKindOfClass: [NSString class ]]) {
167
+ if (![object isKindOfClass: [NSString class ]]) {
168
168
FIREBASE_ASSERT_MESSAGE (false , " Object in Array is not of type NSString" );
169
169
} else {
170
- string_vector->push_back (NSStringToString((NSString *)object));
170
+ string_vector->push_back (NSStringToString((NSString *)object));
171
171
}
172
172
}
173
173
}
174
174
175
- NSMutableArray * StdVectorToNSMutableArray (const std::vector<Variant>& vector) {
176
- NSMutableArray * array =
177
- [[NSMutableArray alloc ] initWithCapacity: vector.size ()];
178
- for (auto & variant : vector) {
175
+ NSMutableArray *StdVectorToNSMutableArray (const std::vector<Variant> &vector) {
176
+ NSMutableArray *array = [[NSMutableArray alloc ] initWithCapacity: vector.size ()];
177
+ for (auto &variant : vector) {
179
178
[array addObject: VariantToId (variant)];
180
179
}
181
180
return array;
You can’t perform that action at this time.
0 commit comments