From 35e4be4c5813df79a2c1cfbb2a72ef61cdd2c3f6 Mon Sep 17 00:00:00 2001
From: Patrick Imbo <patrick.imbo@c-s.fr>
Date: Mon, 11 Oct 2010 16:35:14 +0200
Subject: [PATCH] ENH: rename enumaration name for the ArchitectureType

---
 Code/SARPolarimetry/otbPolarimetricData.cxx            | 4 ++--
 Code/SARPolarimetry/otbPolarimetricData.h              | 2 +-
 Code/SARPolarimetry/otbPolarimetricSynthesisFilter.txx | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Code/SARPolarimetry/otbPolarimetricData.cxx b/Code/SARPolarimetry/otbPolarimetricData.cxx
index 8a9114a2f9..88f3a30c6a 100644
--- a/Code/SARPolarimetry/otbPolarimetricData.cxx
+++ b/Code/SARPolarimetry/otbPolarimetricData.cxx
@@ -25,7 +25,7 @@ namespace otb
 PolarimetricData
 ::PolarimetricData()
 {
-  SetArchitectureType(UNKNOWN);
+  SetArchitectureType(UNKNOWN_ARCHITECTURE);
 }
 
 void
@@ -70,7 +70,7 @@ PolarimetricData
     }
   else
     {
-    SetArchitectureType(UNKNOWN);
+    SetArchitectureType(UNKNOWN_ARCHITECTURE);
     }
 }
 
diff --git a/Code/SARPolarimetry/otbPolarimetricData.h b/Code/SARPolarimetry/otbPolarimetricData.h
index c65559b3cc..2a0ed3513a 100644
--- a/Code/SARPolarimetry/otbPolarimetricData.h
+++ b/Code/SARPolarimetry/otbPolarimetricData.h
@@ -35,7 +35,7 @@ typedef enum
   HH_HV = 3,
   VH_VV = 4,
   HH_VV = 5,
-  UNKNOWN = 6
+  UNKNOWN_ARCHITECTURE = 6
   } ArchitectureType;
 
 /** \class PolarimetricData
diff --git a/Code/SARPolarimetry/otbPolarimetricSynthesisFilter.txx b/Code/SARPolarimetry/otbPolarimetricSynthesisFilter.txx
index dc9b065f3a..449bd789b9 100644
--- a/Code/SARPolarimetry/otbPolarimetricSynthesisFilter.txx
+++ b/Code/SARPolarimetry/otbPolarimetricSynthesisFilter.txx
@@ -201,7 +201,7 @@ PolarimetricSynthesisFilter<TInputImageHH, TInputImageHV, TInputImageVH, TInputI
       itkExceptionMacro("Only the HH and VV channels are available : Polarimetric synthesis is not supported !");
       return;
 
-    case UNKNOWN:
+    case UNKNOWN_ARCHITECTURE:
       itkExceptionMacro("Unknown architecture : Polarimetric synthesis is impossible !");
       return;
 
-- 
GitLab