diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-07-12 08:20:45 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-07-12 08:20:45 (GMT) |
commit | 505c18d593b11fa682694a7653b17b325c1aac0e (patch) | |
tree | c3ba5e24ad98f73282a71b040e1a98de2b50b2d6 /win | |
parent | 403569ef177348b14d7bfb85c2a488ecaf0a2117 (diff) | |
download | tcl-505c18d593b11fa682694a7653b17b325c1aac0e.zip tcl-505c18d593b11fa682694a7653b17b325c1aac0e.tar.gz tcl-505c18d593b11fa682694a7653b17b325c1aac0e.tar.bz2 |
Code cleanup (use {} in if/else statemenets)
Diffstat (limited to 'win')
-rw-r--r-- | win/tclWinDde.c | 4 | ||||
-rw-r--r-- | win/tclWinLoad.c | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/win/tclWinDde.c b/win/tclWinDde.c index 2570954..1c10c65 100644 --- a/win/tclWinDde.c +++ b/win/tclWinDde.c @@ -1789,9 +1789,9 @@ DdeObjCmd( } if (result == TCL_OK) { - if (objc == 1) + if (objc == 1) { objPtr = objv[0]; - else { + } else { objPtr = Tcl_ConcatObj(objc, objv); } if (riPtr->handlerPtr != NULL) { diff --git a/win/tclWinLoad.c b/win/tclWinLoad.c index 1d64d18..9d2d87e 100644 --- a/win/tclWinLoad.c +++ b/win/tclWinLoad.c @@ -112,10 +112,11 @@ TclpDlopen( * first error for reporting purposes. */ if (firstError == ERROR_MOD_NOT_FOUND || - firstError == ERROR_DLL_NOT_FOUND) + firstError == ERROR_DLL_NOT_FOUND) { lastError = GetLastError(); - else + } else { lastError = firstError; + } errMsg = Tcl_ObjPrintf("couldn't load library \"%s\": ", Tcl_GetString(pathPtr)); |