From 773e3b548723ac84c74b36a855fe2a13fd9218d0 Mon Sep 17 00:00:00 2001 From: Brian Cox Date: Sat, 23 Apr 2016 12:34:04 -0700 Subject: [PATCH] Fix a couple of 'misleading indentation' warnings exposed by the big tab->spaces commit yesterday. --- src/core/msystem.cpp | 16 ++++++++++------ src/tw/textreportviewer.cpp | 5 ++--- src/tw/twstrings.cpp | 2 +- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/core/msystem.cpp b/src/core/msystem.cpp index cf8dd3e..c0158e4 100644 --- a/src/core/msystem.cpp +++ b/src/core/msystem.cpp @@ -961,7 +961,8 @@ int mask; /* * parent process: if couldn't create child, error */ - if (ch_pid != -1){ + if (ch_pid != -1) + { /* * ignore any signals until child dies */ @@ -981,20 +982,23 @@ int mask; /* * use a stdio interface for uniformity */ - if (fp != NULL){ - if (fp[0] != NULL) + if (fp != NULL) + { + if (fp[0] != NULL) fp[0] = fdopen(p[0][1], "w"); else (void) close(p[0][1]); - if (fp[1] != NULL) + + if (fp[1] != NULL) fp[1] = fdopen(p[1][0], "r"); else (void) close(p[1][0]); - if (fp[2] != NULL) + + if (fp[2] != NULL) fp[2] = fdopen(p[2][0], "r"); else (void) close(p[2][0]); - } + } } /* * return child's PID diff --git a/src/tw/textreportviewer.cpp b/src/tw/textreportviewer.cpp index 7eadd56..a43de25 100644 --- a/src/tw/textreportviewer.cpp +++ b/src/tw/textreportviewer.cpp @@ -1781,9 +1781,8 @@ bool cEmailReportViewer::IgnoreThisSpec(const cFCOSpecAttr *attr) // IgnoreThisSpec - returns false if the email address is specified // for the given spec attributes. - if (mbForceFullReport) - return false; - + if (mbForceFullReport) + return false; // loop through all email addresses for this spec cFCOSpecAttrEmailIter emailIter(*attr); diff --git a/src/tw/twstrings.cpp b/src/tw/twstrings.cpp index 3e21683..9f52e5c 100644 --- a/src/tw/twstrings.cpp +++ b/src/tw/twstrings.cpp @@ -253,7 +253,7 @@ TSS_BeginStringtable( cTW ) TSS_StringEntry( tw::STR_TSS_PRODUCT_NAME, TSS_PRODUCT_NAME BUILD_NUM UNICODE_STR DEBUG_STR ), TSS_StringEntry( tw::STR_VERSION, TSS_PRODUCT_NAME BUILD_NUM UNICODE_STR DEBUG_STR _T(" built for "TARGET_OS"\n\n") TSS_COPYRIGHT_NOTICE ), - TSS_StringEntry( tw::STR_VERSION_LONG, TSS_PRODUCT_NAME BUILD_NUM UNICODE_STR DEBUG_STR _T(" built for "TARGET_OS"\n\n") TSS_COPYRIGHT_NOTICE_LONG ), + TSS_StringEntry( tw::STR_VERSION_LONG, TSS_PRODUCT_NAME BUILD_NUM UNICODE_STR DEBUG_STR _T(" built for "TARGET_OS"\n\n") TSS_COPYRIGHT_NOTICE_LONG ), TSS_EndStringtable( cTW )