clang-tidy: one declaration per line; braces around statements

clang-tidy checks:
readability-isolate-declaration and readability-braces-around-statements

KF task: https://phabricator.kde.org/T14729

GIT_SILENT
This commit is contained in:
Ahmad Samir
2021-08-13 15:13:07 +02:00
parent a8f92e5525
commit f5d574b3ad
12 changed files with 134 additions and 56 deletions

View File

@ -99,7 +99,10 @@ void K_IStream::clear()
*/
QRgb RgbaToQrgba(struct Imf::Rgba &imagePixel)
{
float r, g, b, a;
float r;
float g;
float b;
float a;
// 1) Compensate for fogging by subtracting defog
// from the raw pixel values.
@ -178,7 +181,8 @@ bool EXRHandler::canRead() const
bool EXRHandler::read(QImage *outImage)
{
try {
int width, height;
int width;
int height;
K_IStream istr(device(), QByteArray());
Imf::RgbaInputFile file(istr);