Fixed indents in some files.

This commit is contained in:
23rd 2023-03-01 22:12:11 +03:00
parent 582df3f39f
commit 6ae15ff264
4 changed files with 18 additions and 18 deletions

View File

@ -107,9 +107,9 @@ int32 *hashSha1(const void *data, uint32 len, void *dest) {
for (end = block + 64; block + 64 <= len; end = block + 64) {
for (uint32 i = 0; block < end; block += 4) {
temp[i++] = (uint32) buf[block + 3]
| (((uint32) buf[block + 2]) << 8)
| (((uint32) buf[block + 1]) << 16)
| (((uint32) buf[block]) << 24);
| (((uint32) buf[block + 2]) << 8)
| (((uint32) buf[block + 1]) << 16)
| (((uint32) buf[block]) << 24);
}
sha1PartHash(sha, temp);
}

View File

@ -118,7 +118,7 @@ constexpr auto kSharedMediaLimit = 100;
return (quint32(std::clamp(color.red(), 0, 255)) << 16)
| (quint32(std::clamp(color.green(), 0, 255)) << 8)
| quint32(std::clamp(color.blue(), 0, 255));
};
};
auto mtpColors = QVector<MTPint>();
mtpColors.reserve(colors.size());

View File

@ -660,7 +660,7 @@ void Widget::setupSupportMode() {
void Widget::setupMainMenuToggle() {
_mainMenu.under->setClickedCallback([=] {
_mainMenu.toggle->clicked({}, Qt::LeftButton);
_mainMenu.toggle->clicked({}, Qt::LeftButton);
});
_mainMenu.under->stackUnder(_mainMenu.toggle);
_mainMenu.toggle->setClickedCallback([=] { showMainMenu(); });

View File

@ -41,29 +41,29 @@ namespace {
[[nodiscard]] QImage ImageFromNS(NSImage *icon) {
CGImageRef image = [icon CGImageForProposedRect:NULL context:nil hints:nil];
const int width = CGImageGetWidth(image);
const int height = CGImageGetHeight(image);
auto result = QImage(width, height, QImage::Format_ARGB32_Premultiplied);
result.fill(Qt::transparent);
const int width = CGImageGetWidth(image);
const int height = CGImageGetHeight(image);
auto result = QImage(width, height, QImage::Format_ARGB32_Premultiplied);
result.fill(Qt::transparent);
CGColorSpaceRef space = CGColorSpaceCreateWithName(kCGColorSpaceSRGB);
CGBitmapInfo info = CGBitmapInfo(kCGImageAlphaPremultipliedFirst) | kCGBitmapByteOrder32Host;
CGContextRef context = CGBitmapContextCreate(
CGContextRef context = CGBitmapContextCreate(
result.bits(),
width,
height,
8,
result.bytesPerLine(),
space,
info);
result.bytesPerLine(),
space,
info);
CGRect rect = CGRectMake(0, 0, width, height);
CGContextDrawImage(context, rect, image);
CGRect rect = CGRectMake(0, 0, width, height);
CGContextDrawImage(context, rect, image);
CFRelease(space);
CFRelease(context);
CFRelease(space);
CFRelease(context);
return result;
return result;
}
[[nodiscard]] QImage ResolveBundleIconDefault() {