From c7d3b3e59c50ff9514bcccbb7f4b73c7bc5a3189 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 20:13:36 +0000 Subject: [PATCH] lilypond-1.0.2 --- flower/include/scalar.hh | 5 ++--- flower/scalar.cc | 11 +++++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) 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 (); +} -- 2.39.5