X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctsim%2Fprojections.cpp;h=73d33b774f64f502091470805284ddd9e2b5fbce;hp=5a07950300206fd3aa0061e67f708dfff618d4af;hb=e8462f7431582627e44906239077f1c696eefba1;hpb=f13a8c004b8f182b42d9e4df2bcd7c7f030bf1ad diff --git a/libctsim/projections.cpp b/libctsim/projections.cpp index 5a07950..73d33b7 100644 --- a/libctsim/projections.cpp +++ b/libctsim/projections.cpp @@ -91,13 +91,13 @@ Projections::convertInterpNameToID (const char* const interpName) { int interpID = POLAR_INTERP_INVALID; - for (int i = 0; i < s_iInterpCount; i++) + for (int i = 0; i < s_iInterpCount; i++) { if (strcasecmp (interpName, s_aszInterpName[i]) == 0) { interpID = i; break; } - - return (interpID); + } + return (interpID); } const char* @@ -105,9 +105,9 @@ Projections::convertInterpIDToName (const int interpID) { static const char *interpName = ""; - if (interpID >= 0 && interpID < s_iInterpCount) + if (interpID >= 0 && interpID < s_iInterpCount) { return (s_aszInterpName[interpID]); - + } return (interpName); } @@ -116,9 +116,9 @@ Projections::convertInterpIDToTitle (const int interpID) { static const char *interpTitle = ""; - if (interpID >= 0 && interpID < s_iInterpCount) + if (interpID >= 0 && interpID < s_iInterpCount) { return (s_aszInterpTitle[interpID]); - + } return (interpTitle); }