Skip to content
Snippets Groups Projects
Commit 4c587f1d authored by Gaëlle USSEGLIO's avatar Gaëlle USSEGLIO
Browse files

Merge branch 'master' of https://gitlab.orfeo-toolbox.org/remote_modules/diapotb into logger_python

parents 55d3cf26 1b46a3ca
No related branches found
No related tags found
1 merge request!22Logger python
......@@ -53,8 +53,6 @@ namespace otb
SARDEMPolygonsAnalysisImageFilter< TImageIn ,TImageOut, TImageDEM, TImageSAR, TFunction >
::SetSARImageKeyWorList(ImageKeywordlist sarImageKWL)
{
// Check if sarImageKWL not NULL
assert(&sarImageKWL && "SAR Image Metadata don't exist.");
m_SarImageKwl = sarImageKWL;
}
......
......@@ -94,8 +94,6 @@ void
SARDEMProjectionImageFilter< TImageIn ,TImageOut >
::SetSARImageKeyWorList(ImageKeywordlist sarImageKWL)
{
// Check if sarImageKWL not NULL
assert(&sarImageKWL && "SAR Image Metadata don't exist.");
m_SarImageKwl = sarImageKWL;
}
......
......@@ -153,7 +153,7 @@ namespace otb
for (std::size_t listId=0; listId!= nbLists ; ++listId)
{
const int pos = sprintf(fmRatePrefix_, "%s%zu.", FM_PREFIX.c_str(), (listId+1));
assert(pos > 0 && pos < sizeof(fmRatePrefix_));
assert(pos > 0 && (unsigned long) pos < sizeof(fmRatePrefix_));
const std::string FMPrefix(fmRatePrefix_, pos);
FMRateRecordType fmRateRecord;
......@@ -183,7 +183,7 @@ namespace otb
for (std::size_t listId=0; listId!= nbLists ; ++listId)
{
const int pos = sprintf(dcfPrefix_, "%s%zu.", DCF_PREFIX.c_str(), (listId+1));
assert(pos > 0 && pos < sizeof(dcfPrefix_));
assert(pos > 0 && (unsigned long) pos < sizeof(dcfPrefix_));
const std::string DCFPrefix(dcfPrefix_, pos);
DCFRecordType dcfRecord;
......
......@@ -91,7 +91,7 @@ namespace otb
for (std::size_t listId=0; listId!= nbLists ; ++listId)
{
const int pos = sprintf(fmRatePrefix_, "%s%zu.", FM_PREFIX.c_str(), (listId+1));
assert(pos > 0 && pos < sizeof(fmRatePrefix_));
assert(pos > 0 && (unsigned long) pos < sizeof(fmRatePrefix_));
const std::string FMPrefix(fmRatePrefix_, pos);
FMRateRecordType fmRateRecord;
......@@ -121,7 +121,7 @@ namespace otb
for (std::size_t listId=0; listId!= nbLists ; ++listId)
{
const int pos = sprintf(dcfPrefix_, "%s%zu.", DCF_PREFIX.c_str(), (listId+1));
assert(pos > 0 && pos < sizeof(dcfPrefix_));
assert(pos > 0 && (unsigned long) pos < sizeof(dcfPrefix_));
const std::string DCFPrefix(dcfPrefix_, pos);
DCFRecordType dcfRecord;
......
......@@ -473,8 +473,6 @@ public:
void SetSARImageKeyWorList(ImageKeywordlist sarImageKWL)
{
// Check if sarImageKWL not NULL
assert(&sarImageKWL && "SAR Image Metadata don't exist.");
m_SarImageKwl = sarImageKWL;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment