Cleanup: balance braces, spelling

Keep braces balanced where possible, even with ifdef's as it avoids
confusions with editors calculating correct indentation level &
finding matching brackets.
This commit is contained in:
Campbell Barton
2020-09-21 14:59:31 +10:00
parent e14894aad2
commit b51d836fcc
2 changed files with 4 additions and 3 deletions

View File

@@ -253,10 +253,11 @@ bool BLO_memfile_write_file(struct MemFile *memfile, const char *filename)
for (chunk = memfile->chunks.first; chunk; chunk = chunk->next) {
#ifdef _WIN32
if ((size_t)write(file, chunk->buf, (uint)chunk->size) != chunk->size) {
if ((size_t)write(file, chunk->buf, (uint)chunk->size) != chunk->size)
#else
if ((size_t)write(file, chunk->buf, chunk->size) != chunk->size) {
if ((size_t)write(file, chunk->buf, chunk->size) != chunk->size)
#endif
{
break;
}
}

View File

@@ -132,7 +132,7 @@ enum {
/** This collection item IDProp has been inserted in a local override.
* This is used by internal code to distinguish between library-originated items and
* local-insterted ones, as many operations are not allowed on the former. */
* local-inserted ones, as many operations are not allowed on the former. */
IDP_FLAG_OVERRIDELIBRARY_LOCAL = 1 << 1,
/** This means the property is set but RNA will return false when checking