From 0147f45ad7c3380df90bc710cd4e3d32ddf3ec17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sun, 16 Nov 2008 22:41:54 +0000 Subject: [PATCH] Simplified the code, style improvement (brackets for multi-line if/else). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28674 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/translators/shared/BaseTranslator.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/add-ons/translators/shared/BaseTranslator.cpp b/src/add-ons/translators/shared/BaseTranslator.cpp index 9949e5992d..13b9e9d562 100644 --- a/src/add-ons/translators/shared/BaseTranslator.cpp +++ b/src/add-ons/translators/shared/BaseTranslator.cpp @@ -543,17 +543,15 @@ BaseTranslator::BitsTranslate(BPositionIO *inSource, const translator_info *inInfo, BMessage *ioExtension, uint32 outType, BPositionIO *outDestination) { - status_t result; - - result = BitsCheck(inSource, ioExtension, outType); - if (result == B_OK && outType == B_TRANSLATOR_BITMAP) + status_t result = BitsCheck(inSource, ioExtension, outType); + if (result == B_OK && outType == B_TRANSLATOR_BITMAP) { result = translate_from_bits_to_bits(inSource, outType, outDestination); - else if (result >= B_OK) + } else if (result >= B_OK) { // If NOT B_TRANSLATOR_BITMAP type it could be the derived format result = DerivedTranslate(inSource, inInfo, ioExtension, outType, outDestination, (result == B_OK)); - + } return result; }