fix: minor xcode warnings in macOS client (#3174)

This commit is contained in:
FX Coudert 2022-06-02 02:51:09 +02:00 committed by GitHub
parent 9170c0f5fc
commit f5e6c5b782
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 3 deletions

View File

@ -115,7 +115,7 @@ static void action_callback_PUSH(
tr_variant* node = get_node(jsn);
data->stack.push_back(node);
int const depth = std::size(data->stack);
size_t const depth = std::size(data->stack);
size_t const n = depth < MaxDepth ? data->preallocGuess[depth] : 0;
if (state->type == JSONSL_T_LIST)
{

View File

@ -150,7 +150,6 @@
//set auto import
NSString* autoPath;
VDKQueue* x = [(Controller*)[NSApp delegate] fileWatcherQueue];
if ([_fDefaults boolForKey:@"AutoImport"] && (autoPath = [_fDefaults stringForKey:@"AutoImportDirectory"]))
{
[((Controller*)NSApp.delegate).fileWatcherQueue addPath:autoPath.stringByExpandingTildeInPath

View File

@ -227,7 +227,7 @@ tr_session* fLib = NULL;
else
{
self.fNumOpenedField.stringValue = [NSString
stringWithFormat:NSLocalizedString(@"%lu times", "stats window -> times opened"), statsAll.sessionCount];
stringWithFormat:NSLocalizedString(@"%llu times", "stats window -> times opened"), statsAll.sessionCount];
}
}