diff options
author | tpaviot <tpaviot@gmail.com> | 2012-01-12 21:41:07 +0100 |
---|---|---|
committer | tpaviot <tpaviot@gmail.com> | 2012-01-15 15:37:20 +0100 |
commit | 8f561100e918b1228d236fcb0cfe62eddadea2b7 (patch) | |
tree | 49d90c369f1a40c2256aa081357b2313fcf1ee4f | |
parent | 4b94e47c392e7fdc6680bdd598a02bf5e0a476fb (diff) | |
download | oce-8f561100e918b1228d236fcb0cfe62eddadea2b7.tar.gz oce-8f561100e918b1228d236fcb0cfe62eddadea2b7.zip |
[cppcheck-warning-fix][Redundant-assignement]
[Quantity/Quantity_Color.cxx:471]: (warning) Redundant assignment of "R1" in switch
[Quantity/Quantity_Color.cxx:471]: (warning) Redundant assignment of "R2" in switch
[Quantity/Quantity_Color.cxx:471]: (warning) Redundant assignment of "R3" in switch
-rw-r--r-- | src/Quantity/Quantity_Color.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Quantity/Quantity_Color.cxx b/src/Quantity/Quantity_Color.cxx index 8550be5e..54f6bd86 100644 --- a/src/Quantity/Quantity_Color.cxx +++ b/src/Quantity/Quantity_Color.cxx @@ -468,8 +468,7 @@ Standard_ShortReal RB = 0 ; switch (AName) { case Quantity_NOC_BLACK : - R1 = R2 = R3 = 0.0; - RR = R1 = 0.000000; RG = R2 = 0.000000; RB = R3 = 0.000000; + R1 = R2 = R3 = RR = RG = RB = 0.0; break; case Quantity_NOC_MATRAGRAY : RR = R1 = (float ) 0.600000; RG = R2 = (float ) 0.600000; RB = R3 = (float ) 0.600000; |