Fix compiler warnings

git-svn-id: svn://localhost/ardour2/branches/3.0@4744 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Sakari Bergen 2009-03-07 09:42:39 +00:00
parent bb20bcc7b6
commit e09c51251f
6 changed files with 7 additions and 6 deletions

View File

@ -884,7 +884,6 @@ ARDOUR_UI::editor_realized ()
Config->map_parameters (mem_fun (*this, &ARDOUR_UI::parameter_changed));
set_size_request_to_display_given_text (speed_display_box, _("-0.55"), 2, 2);
const guint32 FUDGE = 25; // Combo's are stupid - they steal space from the entry for the button
cerr << "I commented out line line 889 in ardour_ui2.cc, because it made ardour crash somewhere in Gnome::Canvas::Text" << endl;
//reset_dpi();
}

View File

@ -1180,7 +1180,6 @@ MixerStrip::name_button_button_press (GdkEventButton* ev)
if (ev->button == 1 || ev->button == 3) {
list_route_operations ();
Menu_Helpers::MenuList& items = route_ops_menu->items();
/* do not allow rename if the track is record-enabled */
rename_menu_item->set_sensitive (!_route->record_enabled());
route_ops_menu->popup (1, ev->time);

View File

@ -64,7 +64,8 @@ AutomationList::AutomationList (Evoral::Parameter id)
}
AutomationList::AutomationList (const AutomationList& other)
: ControlList(other)
: StatefulDestructible()
, ControlList(other)
{
_style = other._style;
_state = other._state;

View File

@ -43,7 +43,8 @@ using namespace sigc;
using namespace PBD;
Location::Location (const Location& other)
: _name (other._name),
: StatefulDestructible(),
_name (other._name),
_start (other._start),
_end (other._end),
_flags (other._flags)

View File

@ -65,7 +65,9 @@ Plugin::Plugin (AudioEngine& e, Session& s)
}
Plugin::Plugin (const Plugin& other)
: _engine (other._engine)
: StatefulDestructible()
, Latent()
, _engine (other._engine)
, _session (other._session)
, _info (other._info)
, _cycles (0)

View File

@ -313,7 +313,6 @@ PluginManager::ladspa_discover (string path)
const LADSPA_Descriptor *descriptor;
LADSPA_Descriptor_Function dfunc;
const char *errstr;
bool first = true;
if ((module = dlopen (path.c_str(), RTLD_NOW)) == 0) {
error << string_compose(_("LADSPA: cannot load module \"%1\" (%2)"), path, dlerror()) << endmsg;