mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
Fixup some formatting leftovers
This commit is contained in:
parent
875fd654d8
commit
1d6d946388
7 changed files with 9 additions and 9 deletions
|
@ -307,8 +307,8 @@ static bool parseLine2(char const* line, struct tr_ipv4_range* range)
|
|||
*/
|
||||
static bool parseLine3(char const* line, struct tr_ipv4_range* range)
|
||||
{
|
||||
unsigned ip[4];
|
||||
unsigned pflen;
|
||||
unsigned int ip[4];
|
||||
unsigned int pflen;
|
||||
uint32_t ip_u;
|
||||
uint32_t mask = 0xffffffff;
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ static int test_metainfo(void)
|
|||
{
|
||||
int expected_benc_err;
|
||||
int expected_parse_result;
|
||||
const void* benc;
|
||||
void const* benc;
|
||||
}
|
||||
const metainfo[] =
|
||||
{
|
||||
|
|
|
@ -2639,7 +2639,7 @@ void tr_peerMgrTorrentAvailability(tr_torrent const* tor, int8_t* tab, unsigned
|
|||
if (tr_torrentHasMetadata(tor))
|
||||
{
|
||||
int const peerCount = tr_ptrArraySize(&tor->swarm->peers);
|
||||
tr_peer const** peers = (const tr_peer**)tr_ptrArrayBase(&tor->swarm->peers);
|
||||
tr_peer const** peers = (tr_peer const**)tr_ptrArrayBase(&tor->swarm->peers);
|
||||
float const interval = tor->info.pieceCount / (float)tabCount;
|
||||
bool const isSeed = tr_torrentGetCompleteness(tor) == TR_SEED;
|
||||
|
||||
|
|
|
@ -1162,7 +1162,7 @@ static char* strip_non_utf8(char const* in, size_t inlen)
|
|||
return evbuffer_free_to_str(buf, NULL);
|
||||
}
|
||||
|
||||
static char* to_utf8(const char* in, size_t inlen)
|
||||
static char* to_utf8(char const* in, size_t inlen)
|
||||
{
|
||||
char* ret = NULL;
|
||||
|
||||
|
|
|
@ -1449,7 +1449,7 @@ static void removeKeRangerRansomware()
|
|||
alert.informativeText = message;
|
||||
[alert addButtonWithTitle:NSLocalizedString(@"Remove", "Removal confirm panel -> button")];
|
||||
[alert addButtonWithTitle:NSLocalizedString(@"Cancel", "Removal confirm panel -> button")];
|
||||
|
||||
|
||||
[alert beginSheetModalForWindow:fWindow
|
||||
completionHandler:^(NSModalResponse returnCode) {
|
||||
if (returnCode == NSAlertFirstButtonReturn) {
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
NSRectFillListWithColors(gridRects, colorRects, count);
|
||||
|
||||
NSGradient *gradient;
|
||||
|
||||
|
||||
if ([NSApp isDarkMode]) {
|
||||
NSColor * darkColor = [NSColor colorWithCalibratedRed: 60.0/255.0 green: 60.0/255.0 blue: 60.0/255.0 alpha: 1.0];
|
||||
NSColor * lightColor = [NSColor colorWithCalibratedRed: 90.0/255.0 green: 90.0/255.0 blue: 90.0/255.0 alpha: 1.0];
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
- (void) setSelectedTab: (BOOL) selected
|
||||
{
|
||||
fSelected = selected;
|
||||
|
||||
|
||||
[self reloadAppearance];
|
||||
}
|
||||
|
||||
|
@ -137,7 +137,7 @@
|
|||
- (void) updateControlTint: (NSNotification *) notification
|
||||
{
|
||||
NSAssert(![NSApp isOnMojaveOrBetter], @"should not be observing control tint color when accent color is available");
|
||||
|
||||
|
||||
if (fSelected)
|
||||
[self setSelectedTab: YES];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue