From: fred Date: Tue, 14 Jan 1997 23:02:35 +0000 (+0000) Subject: flower-1.0.20 X-Git-Tag: release/1.5.59~6409 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d390a985284585e1f7fe013bef3256d1406a1b27;p=lilypond.git flower-1.0.20 --- diff --git a/flower/scalar.cc b/flower/scalar.cc index f981bc101f..d8e6f9e74b 100644 --- a/flower/scalar.cc +++ b/flower/scalar.cc @@ -43,8 +43,8 @@ Scalar::operator int() return value(); } -bool -Scalar::to_bool() const + +Scalar::operator bool() const { if (!len()) return false; diff --git a/flower/scalar.hh b/flower/scalar.hh index 67ae85beda..bff21618c6 100644 --- a/flower/scalar.hh +++ b/flower/scalar.hh @@ -24,7 +24,7 @@ struct Scalar : public String { operator Real(); operator int(); /// - bool to_bool() const; + operator bool() const; /** perl -like string to bool conversion */