diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2019-05-19 17:01:27 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2019-05-19 17:01:27 -0700 |
commit | 2e362598168e73f935146b3b7ec4318390651cc6 (patch) | |
tree | 2649af4ce6f0f826dbcb248661cb7ac3c2551ffe /CyteKit/CyteObject.mm | |
parent | 136cc0a23da9281874ee88b7b51174538fcb9269 (diff) |
Swap awkward va_list hack for awkward switch hack.
Diffstat (limited to 'CyteKit/CyteObject.mm')
-rw-r--r-- | CyteKit/CyteObject.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CyteKit/CyteObject.mm b/CyteKit/CyteObject.mm index 382b4f4..0659b51 100644 --- a/CyteKit/CyteObject.mm +++ b/CyteKit/CyteObject.mm @@ -31,6 +31,7 @@ #include "CyteKit/WebViewController.h" #include "CyteKit/countByEnumeratingWithState.h" #include "CyteKit/extern.h" +#include "CyteKit/stringWith.h" #include "iPhonePrivate.h" #include <Menes/ObjectHandle.h> @@ -371,7 +372,7 @@ static NSObject *CYIOGetValue(const char *path, NSString *property) { id values[count]; for (unsigned i(0); i != count; ++i) values[i] = [arguments objectAtIndex:i]; - return [[[NSString alloc] initWithFormat:format arguments:reinterpret_cast<va_list>(values)] autorelease]; + return [NSString stringWithFormat:format :count :values]; } - (BOOL) supports:(NSString *)feature { |