]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
Use modern dot notation to access _inBuffer properties
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Wed, 19 Jul 2023 15:00:29 +0000 (23:00 +0800)
committerClaudio Cambra <claudio.cambra@nextcloud.com>
Mon, 24 Jul 2023 10:12:29 +0000 (12:12 +0200)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
shell_integration/MacOSX/NextcloudIntegration/NCDesktopClientSocketKit/LocalSocketClient.m

index a4e41885d6d6aa74c2703829b28b29972d3daba0..1d94f8d3a3221ebd5f4481c97850167913fd8927 100644 (file)
                                                            options:0
                                                              range:inBufferLengthRange];
 
-        unsigned char *buffer = [_inBuffer mutableBytes];
+        unsigned char *buffer = _inBuffer.mutableBytes;
         NSUInteger nullTerminatorIndex = NSUIntegerMax;
 
         if (firstSeparatorIndex.location == NSNotFound) {
 
         buffer[nullTerminatorIndex] = 0; // Add NULL terminator, so we can use C string methods
 
-        NSString * const newLine = [NSString stringWithUTF8String:[_inBuffer bytes]];
+        NSString * const newLine = [NSString stringWithUTF8String:_inBuffer.bytes];
         const NSRange nullTerminatorRange = NSMakeRange(0, nullTerminatorIndex + 1);
 
         [_inBuffer replaceBytesInRange:nullTerminatorRange withBytes:NULL length:0];