@@ -125,7 +125,7 @@ CutBrickLimit<TValueToFilter>::CutBrickLimit()
125125// / \param value The limit value
126126template <typename TValueToFilter>
127127CutBrickLimit<TValueToFilter>::CutBrickLimit(const char * name, const TValueToFilter& value)
128- : CutBrick<TValueToFilter>(name, TString::Format(" %s{lim{%f}}" , name, float (value))),
128+ : CutBrick<TValueToFilter>(name, TString::Format(" %s{lim{%f}}" , name, static_cast < float > (value))),
129129 mLimit (value)
130130{
131131}
@@ -261,7 +261,7 @@ CutBrickThreshold<TValueToFilter>::CutBrickThreshold()
261261// / \param value The threshold value
262262template <typename TValueToFilter>
263263CutBrickThreshold<TValueToFilter>::CutBrickThreshold(const char * name, const TValueToFilter& value)
264- : CutBrick<TValueToFilter>(name, TString::Format(" %s{th{%f}}" , name, float (value))),
264+ : CutBrick<TValueToFilter>(name, TString::Format(" %s{th{%f}}" , name, static_cast < float > (value))),
265265 mThreshold (value)
266266{
267267}
@@ -399,7 +399,7 @@ CutBrickRange<TValueToFilter>::CutBrickRange()
399399// / \param high The high value for the cut range
400400template <typename TValueToFilter>
401401CutBrickRange<TValueToFilter>::CutBrickRange(const char * name, const TValueToFilter& low, const TValueToFilter& high)
402- : CutBrick<TValueToFilter>(name, TString::Format(" %s{rg{%f,%f}}" , name, float (low), float (high))),
402+ : CutBrick<TValueToFilter>(name, TString::Format(" %s{rg{%f,%f}}" , name, static_cast < float > (low), static_cast < float > (high))),
403403 mLow (low),
404404 mUp(high)
405405{
@@ -543,7 +543,7 @@ CutBrickExtToRange<TValueToFilter>::CutBrickExtToRange()
543543// / \param high The high value for the cut excluded range
544544template <typename TValueToFilter>
545545CutBrickExtToRange<TValueToFilter>::CutBrickExtToRange(const char * name, const TValueToFilter& low, const TValueToFilter& high)
546- : CutBrick<TValueToFilter>(name, TString::Format(" %s{xrg{%f,%f}}" , name, float (low), float (high))),
546+ : CutBrick<TValueToFilter>(name, TString::Format(" %s{xrg{%f,%f}}" , name, static_cast < float > (low), static_cast < float > (high))),
547547 mLow (low),
548548 mUp(high)
549549{
@@ -691,9 +691,10 @@ CutBrickSelectorMultipleRanges<TValueToFilter>::CutBrickSelectorMultipleRanges(c
691691 for (const auto & edge : edges) {
692692 mEdges .push_back (edge);
693693 if (first) {
694- title += TString::Format (" %.2f" , float (edge));
694+ title += TString::Format (" %.2f" , static_cast <float >(edge));
695+ first = false ;
695696 } else {
696- title += TString::Format (" ,%.2f" , float (edge));
697+ title += TString::Format (" ,%.2f" , static_cast < float > (edge));
697698 }
698699 }
699700 title += " }" ;
0 commit comments