OpenToonz - An open-source full-featured 2D animation creation software
C
clang format
shun-iwasawac7680752e4d8
diff --git a/toonz/sources/image/tif/tiio_tif.cpp b/toonz/sources/image/tif/tiio_tif.cppindex 04b52b2c3..1a0a77e31 100644--- a/toonz/sources/image/tif/tiio_tif.cpp+++ b/toonz/sources/image/tif/tiio_tif.cpp@@ -257,7 +257,7 @@ break;*/if (bps == 10 || bps == 12 ||bps == 14) // immagini con bps = 10 , 12 , 14 , 24 , 32- bps = 8;+ bps = 8;if (bps == 24 || bps == 32) bps = 16;m_info.m_bitsPerSample = bps;@@ -928,9 +928,9 @@ void TifWriter::open(FILE *file, const TImageInfo &info) {assert(false);}TIFFSetField(m_tiff, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);- TIFFSetField(m_tiff, TIFFTAG_PHOTOMETRIC, (m_bpp == 8 || m_bpp == 1)- ? PHOTOMETRIC_MINISBLACK- : PHOTOMETRIC_RGB);+ TIFFSetField(+ m_tiff, TIFFTAG_PHOTOMETRIC,+ (m_bpp == 8 || m_bpp == 1) ? PHOTOMETRIC_MINISBLACK : PHOTOMETRIC_RGB);TIFFSetField(m_tiff, TIFFTAG_XRESOLUTION, m_info.m_dpix);TIFFSetField(m_tiff, TIFFTAG_YRESOLUTION, m_info.m_dpiy);TIFFSetField(m_tiff, TIFFTAG_RESOLUTIONUNIT, RESUNIT_INCH);@@ -1055,7 +1055,7 @@ extern "C" {static void MyWarningHandler(const char *module, const char *fmt, va_list ap) {std::string outMsg;char msg[2048];- msg[0] = 0;+ msg[0] = 0;if (module != NULL) outMsg = std::string(module);outMsg += "Warning, ";@@ -1069,7 +1069,7 @@ static void MyWarningHandler(const char *module, const char *fmt, va_list ap) {static void MyErrorHandler(const char *module, const char *fmt, va_list ap) {std::string outMsg;char msg[2048];- msg[0] = 0;+ msg[0] = 0;if (module != NULL) outMsg = std::string(module);// outMsg += "Warning, ";diff --git a/toonz/sources/stdfx/rgbmcutfx.cpp b/toonz/sources/stdfx/rgbmcutfx.cppindex 7699c33c1..25ce3ea3c 100644--- a/toonz/sources/stdfx/rgbmcutfx.cpp+++ b/toonz/sources/stdfx/rgbmcutfx.cpp@@ -58,7 +58,7 @@ void update_param(double ¶m, TRaster64P ras) {param = param * 257;return;}-}+} // namespace//-------------------------------------------------------------------