]> git.donarmstrong.com Git - lilypond.git/commitdiff
flower-1.0.20
authorfred <fred>
Tue, 14 Jan 1997 23:02:35 +0000 (23:02 +0000)
committerfred <fred>
Tue, 14 Jan 1997 23:02:35 +0000 (23:02 +0000)
flower/scalar.cc
flower/scalar.hh

index f981bc101f83a5b5f01f4fbc3cb44eb8fea52dfc..d8e6f9e74b927876f92c384d339daba951be650d 100644 (file)
@@ -43,8 +43,8 @@ Scalar::operator int()
     return value();
 }
 
-bool
-Scalar::to_bool() const
+
+Scalar::operator bool() const
 {
     if (!len())
        return false;
index 67ae85beda708216c08118fc572012ffd68d66d6..bff21618c62de4db000573427b79e69145ad90ca 100644 (file)
@@ -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
      */