X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=libctsim%2Fprojections.cpp;h=73d33b774f64f502091470805284ddd9e2b5fbce;hb=dca8d386ab6a4e33050b456cff4547d6adfdf249;hp=f7ebe704934fb736297891c53d721628f03d66b8;hpb=1a050c98763fbbc0662731b0b76953acede6f5d7;p=ctsim.git diff --git a/libctsim/projections.cpp b/libctsim/projections.cpp index f7ebe70..73d33b7 100644 --- a/libctsim/projections.cpp +++ b/libctsim/projections.cpp @@ -6,9 +6,7 @@ ** Date Started: Aug 84 ** ** This is part of the CTSim program -** Copyright (c) 1983-2001 Kevin Rosenberg -** -** $Id$ +** Copyright (c) 1983-2009 Kevin Rosenberg ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -93,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* @@ -107,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); } @@ -118,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); }