#undef check
#undef YES
#undef NO
+#ifdef verify
+#undef verify
+#endif
#include "ardour_ui.h"
#include "actions.h"
string str;
TreeModel::Row row;
Gdk::Color c;
- bool missing_source = boost::dynamic_pointer_cast<SilentFileSource>(region->source());
+ bool missing_source = boost::dynamic_pointer_cast<SilentFileSource>(region->source()) != NULL;
if (!_show_automatic_regions && region->automatic()) {
return;
}
}
- save_button.set_sensitive (current);
- remove_button.set_sensitive (current);
+ save_button.set_sensitive (current != 0);
+ remove_button.set_sensitive (current != 0);
new_button.set_sensitive (!current && !text.empty() && !preset_name_exists);
}
bool
GainMeterBase::level_meter_button_press (GdkEventButton* ev)
{
- return LevelMeterButtonPress (ev); /* EMIT SIGNAL */
+ return !!LevelMeterButtonPress (ev); /* EMIT SIGNAL */
}
void
bool
LevelMeterBase::meter_button_press (GdkEventButton* ev)
{
- return ButtonPress (ev); /* EMIT SIGNAL */
+ return !!ButtonPress (ev); /* EMIT SIGNAL */
}
bool
bool
PortMatrix::can_add_channels (boost::shared_ptr<Bundle> b) const
{
- return io_from_bundle (b);
+ return io_from_bundle (b) != 0;
}
void
bool
PortMatrix::can_remove_channels (boost::shared_ptr<Bundle> b) const
{
- return io_from_bundle (b);
+ return io_from_bundle (b) != 0;
}
void
bool
SessionOptionEditor::set_use_monitor_section (bool yn)
{
- bool had_monitor_section = _session->monitor_out();
+ bool had_monitor_section = _session->monitor_out() != 0;
if (yn) {
_session->add_monitor_section ();
}
operator bool () const {
- return _current;
+ return _current ? true : false;
}
protected: