@@ -250,12 +250,12 @@ PropertyValue Box::propertyDefault(Pid id) const
250250 switch (id) {
251251 case Pid::BOX_HEIGHT:
252252 case Pid::BOX_WIDTH:
253- return Spatium ( 0.0 ) ;
253+ return 0 .0_sp ;
254254
255255 case Pid::TOP_GAP:
256- return isHBox () ? Spatium ( 0.0 ) : style ().styleS (Sid::systemFrameDistance);
256+ return isHBox () ? 0 .0_sp : style ().styleS (Sid::systemFrameDistance);
257257 case Pid::BOTTOM_GAP:
258- return isHBox () ? Spatium ( 0.0 ) : style ().styleS (Sid::frameSystemDistance);
258+ return isHBox () ? 0 .0_sp : style ().styleS (Sid::frameSystemDistance);
259259
260260 case Pid::LEFT_MARGIN:
261261 case Pid::RIGHT_MARGIN:
@@ -597,7 +597,7 @@ PropertyValue HBox::propertyDefault(Pid id) const
597597 case Pid::CREATE_SYSTEM_HEADER:
598598 return true ;
599599 case Pid::BOX_WIDTH:
600- return Spatium ( 5.0 ) ;
600+ return 5 .0_sp ;
601601 default :
602602 return Box::propertyDefault (id);
603603 }
@@ -624,12 +624,12 @@ VBox::VBox(System* parent)
624624
625625double VBox::minHeight () const
626626{
627- return absoluteFromSpatium (Spatium ( 10 ) );
627+ return absoluteFromSpatium (10_sp );
628628}
629629
630630double VBox::maxHeight () const
631631{
632- return absoluteFromSpatium (Spatium ( 30 ) );
632+ return absoluteFromSpatium (30_sp );
633633}
634634
635635PropertyValue VBox::getProperty (Pid propertyId) const
@@ -654,7 +654,7 @@ PropertyValue VBox::propertyDefault(Pid id) const
654654{
655655 switch (id) {
656656 case Pid::BOX_HEIGHT:
657- return Spatium ( 10.0 ) ;
657+ return 10 .0_sp ;
658658 default :
659659 return Box::propertyDefault (id);
660660 }
@@ -892,7 +892,7 @@ PropertyValue FBox::propertyDefault(Pid propertyId) const
892892 return 1.0 ;
893893 case Pid::FRET_FRAME_COLUMN_GAP:
894894 case Pid::FRET_FRAME_ROW_GAP:
895- return Spatium ( 3.0 ) ;
895+ return 3 .0_sp ;
896896 case Pid::FRET_FRAME_CHORDS_PER_ROW:
897897 return 8 ;
898898 case Pid::FRET_FRAME_H_ALIGN:
@@ -1057,7 +1057,7 @@ PropertyValue TBox::propertyDefault(Pid id) const
10571057{
10581058 switch (id) {
10591059 case Pid::BOX_HEIGHT:
1060- return Spatium ( 1 ) ;
1060+ return 1_sp ;
10611061 default :
10621062 return VBox::propertyDefault (id);
10631063 }
0 commit comments