From: fred Date: Sun, 24 Mar 2002 20:13:36 +0000 (+0000) Subject: lilypond-1.0.2 X-Git-Tag: release/1.5.59~2991 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=c7d3b3e59c50ff9514bcccbb7f4b73c7bc5a3189;p=lilypond.git lilypond-1.0.2 --- diff --git a/flower/include/scalar.hh b/flower/include/scalar.hh index a963a2fb2a..8f442d9041 100644 --- a/flower/include/scalar.hh +++ b/flower/include/scalar.hh @@ -12,7 +12,6 @@ #include "string.hh" #include "real.hh" -#include "matrix.hh" /// Perl -like scalar type. struct Scalar : public String @@ -34,8 +33,8 @@ struct Scalar : public String urg, these are bit silly; perhaps should make "Print_string" class (derive from Scalar?) */ - Scalar (Vector v) { *this = v.str (); } - Scalar (Matrix m) { *this = m.str (); } + Scalar (Vector const &v); + Scalar (Matrix const &m); /** perl -like string to bool conversion. */ diff --git a/flower/scalar.cc b/flower/scalar.cc index c1f69eda60..7008880ccc 100644 --- a/flower/scalar.cc +++ b/flower/scalar.cc @@ -10,6 +10,7 @@ #include #include "scalar.hh" #include "rational.hh" +#include "matrix.hh" Scalar::Scalar (Rational r) { @@ -72,3 +73,13 @@ Scalar::to_bool () const return false; return true; } + +Scalar::Scalar(Matrix const &m) +{ + *this = m.str (); +} + +Scalar::Scalar (Vector const &v) +{ + *this = v.str (); +}