From: Claudio Cambra Date: Wed, 19 Jul 2023 15:00:29 +0000 (+0800) Subject: Use modern dot notation to access _inBuffer properties X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~92^2^2~73^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e0da34d36c13b34fb1580d6b565cbbade548d46c;p=nextcloud-desktop.git Use modern dot notation to access _inBuffer properties Signed-off-by: Claudio Cambra --- diff --git a/shell_integration/MacOSX/NextcloudIntegration/NCDesktopClientSocketKit/LocalSocketClient.m b/shell_integration/MacOSX/NextcloudIntegration/NCDesktopClientSocketKit/LocalSocketClient.m index a4e41885d..1d94f8d3a 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/NCDesktopClientSocketKit/LocalSocketClient.m +++ b/shell_integration/MacOSX/NextcloudIntegration/NCDesktopClientSocketKit/LocalSocketClient.m @@ -338,7 +338,7 @@ options:0 range:inBufferLengthRange]; - unsigned char *buffer = [_inBuffer mutableBytes]; + unsigned char *buffer = _inBuffer.mutableBytes; NSUInteger nullTerminatorIndex = NSUIntegerMax; if (firstSeparatorIndex.location == NSNotFound) { @@ -355,7 +355,7 @@ 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];