projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48fb3e3
)
add operator bool() to Evoral::Beats
author
Paul Davis
<paul@linuxaudiosystems.com>
Wed, 20 May 2015 12:16:07 +0000
(08:16 -0400)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Mon, 29 Jun 2015 18:18:14 +0000
(14:18 -0400)
libs/evoral/evoral/Beats.hpp
patch
|
blob
|
history
diff --git
a/libs/evoral/evoral/Beats.hpp
b/libs/evoral/evoral/Beats.hpp
index e0277c4b3d999d4aa36487df2935c46d82ba352f..c419c920f1a3a252d394ca11d1c2ad90039400cb 100644
(file)
--- a/
libs/evoral/evoral/Beats.hpp
+++ b/
libs/evoral/evoral/Beats.hpp
@@
-191,6
+191,8
@@
public:
bool operator!() const { return _time == 0; }
+ operator bool() const { return _time != 0; }
+
static Beats min() { return Beats(DBL_MIN); }
static Beats max() { return Beats(DBL_MAX); }
static Beats tick() { return Beats(1.0 / PPQN); }