|
81 | 81 |
|
82 | 82 | void CHIPPersistentStorageDelegateBridge::GetKeyValue(const char * key)
|
83 | 83 | {
|
| 84 | + NSString * keyString = [NSString stringWithUTF8String:key]; |
84 | 85 | dispatch_async(mWorkQueue, ^{
|
85 |
| - NSString * keyString = [NSString stringWithUTF8String:key]; |
86 | 86 | NSLog(@"PersistentStorageDelegate Get Value for Key: %@", keyString);
|
87 | 87 |
|
88 | 88 | id<CHIPPersistentStorageDelegate> strongDelegate = mDelegate;
|
|
101 | 101 | CHIP_ERROR CHIPPersistentStorageDelegateBridge::GetKeyValue(const char * key, char * value, uint16_t & size)
|
102 | 102 | {
|
103 | 103 | __block CHIP_ERROR error = CHIP_NO_ERROR;
|
| 104 | + NSString * keyString = [NSString stringWithUTF8String:key]; |
104 | 105 | dispatch_sync(mWorkQueue, ^{
|
105 |
| - NSString * keyString = [NSString stringWithUTF8String:key]; |
106 | 106 | NSLog(@"PersistentStorageDelegate Sync Get Value for Key: %@", keyString);
|
107 | 107 |
|
108 | 108 | NSString * valueString = nil;
|
|
131 | 131 |
|
132 | 132 | void CHIPPersistentStorageDelegateBridge::SetKeyValue(const char * key, const char * value)
|
133 | 133 | {
|
| 134 | + NSString * keyString = [NSString stringWithUTF8String:key]; |
| 135 | + NSString * valueString = [NSString stringWithUTF8String:value]; |
134 | 136 | dispatch_async(mWorkQueue, ^{
|
135 |
| - NSString * keyString = [NSString stringWithUTF8String:key]; |
136 |
| - NSString * valueString = [NSString stringWithUTF8String:value]; |
137 | 137 | NSLog(@"PersistentStorageDelegate Set Key %@, Value %@", keyString, valueString);
|
138 | 138 |
|
139 | 139 | id<CHIPPersistentStorageDelegate> strongDelegate = mDelegate;
|
|
150 | 150 |
|
151 | 151 | void CHIPPersistentStorageDelegateBridge::DeleteKeyValue(const char * key)
|
152 | 152 | {
|
| 153 | + NSString * keyString = [NSString stringWithUTF8String:key]; |
153 | 154 | dispatch_async(mWorkQueue, ^{
|
154 |
| - NSString * keyString = [NSString stringWithUTF8String:key]; |
155 | 155 | NSLog(@"PersistentStorageDelegate Delete Key: %@", keyString);
|
156 | 156 |
|
157 | 157 | id<CHIPPersistentStorageDelegate> strongDelegate = mDelegate;
|
|
0 commit comments