diff --git a/Modules/Core/Metadata/src/otbIkonosImageMetadataInterface.cxx b/Modules/Core/Metadata/src/otbIkonosImageMetadataInterface.cxx index c778bc50b88343070ae4670304ffe525e1020bca..1751f14b93fd4bd3db85a9e04a27af2ae0ae2d1b 100644 --- a/Modules/Core/Metadata/src/otbIkonosImageMetadataInterface.cxx +++ b/Modules/Core/Metadata/src/otbIkonosImageMetadataInterface.cxx @@ -641,9 +641,9 @@ IkonosImageMetadataInterface 0.118682, 0.111158, 0.103634, 0.0963653, 0 }; - for (unsigned int i = 0; i<275; ++i) + for (unsigned int j = 0; j < 275; ++j) { - b0[i] = tmp[i]; + b0[j] = tmp[j]; } } else if (bandName[i].find("Blue") != std::string::npos) @@ -698,9 +698,9 @@ IkonosImageMetadataInterface 0.00194551, 0.00218138, 0.00241724, 0.00185843, 0 }; - for (unsigned int i = 0; i<275; ++i) + for (unsigned int j = 0; j < 275; ++j) { - b0[i] = tmp[i]; + b0[j] = tmp[j]; } } else if (bandName[i].find("Green") != std::string::npos) @@ -755,9 +755,9 @@ IkonosImageMetadataInterface 0.00221828, 0.00179734, 0.00137641, 0.00148945, 0 }; - for (unsigned int i = 0; i<275; ++i) + for (unsigned int j = 0; j < 275; ++j) { - b0[i] = tmp[i]; + b0[j] = tmp[j]; } } else if (bandName[i].find("Red") != std::string::npos) @@ -812,9 +812,9 @@ IkonosImageMetadataInterface 0.00125963, 0.00107872, 0.000897814, 0.000448907, 0 }; - for (unsigned int i = 0; i<275; ++i) + for (unsigned int j = 0; j < 275; ++j) { - b0[i] = tmp[i]; + b0[j] = tmp[j]; } } else if (bandName[i].find("NIR") != std::string::npos) @@ -869,9 +869,9 @@ IkonosImageMetadataInterface 0.0027541, 0.00137705, 0, 0, 0 }; - for (unsigned int i = 0; i<275; ++i) + for (unsigned int j = 0; j < 275; ++j) { - b0[i] = tmp[i]; + b0[j] = tmp[j]; } } else