From d390a985284585e1f7fe013bef3256d1406a1b27 Mon Sep 17 00:00:00 2001 From: fred Date: Tue, 14 Jan 1997 23:02:35 +0000 Subject: [PATCH] flower-1.0.20 --- flower/scalar.cc | 4 ++-- flower/scalar.hh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 */ -- 2.39.5