Fix silly careless errors.

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4134 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2008-11-11 04:53:37 +00:00
parent 5c4601c08a
commit 4b8fb7e081
4 changed files with 4 additions and 7 deletions

View file

@ -305,10 +305,7 @@ AutomationTimeAxisView::set_height (uint32_t h)
bool changed_between_small_and_normal = ( (h == hSmall || h == hSmaller) ^ (height == hSmall || height == hSmaller) );
TimeAxisView* state_parent = get_parent_with_state ();
XMLNode* xml_node;
if (state_parent) {
xml_node = state_parent->get_child_xml_node (_state_name);
}
XMLNode* xml_node = (state_parent ? state_parent->get_child_xml_node (_state_name) : NULL);
TimeAxisView::set_height (h);
base_rect->property_y2() = h;

View file

@ -1615,7 +1615,7 @@ gnome_canvas_waveview_draw (GnomeCanvasItem *item,
double origin;
double clip_length;
double xoff;
double yoff;
double yoff = 0.0;
double ulx;
double uly;
double lrx;

View file

@ -4644,7 +4644,7 @@ Editor::toggle_region_opaque ()
void
Editor::toggle_record_enable ()
{
bool new_state;
bool new_state = false;
bool first = true;
for (TrackSelection::iterator i = selection->tracks.begin(); i != selection->tracks.end(); ++i) {
RouteTimeAxisView *rtav = dynamic_cast<RouteTimeAxisView *>(*i);

View file

@ -1151,7 +1151,7 @@ EngineControl::set_state (const XMLNode& root)
XMLNodeList clist;
XMLNodeConstIterator citer;
XMLNode* child;
XMLProperty* prop;
XMLProperty* prop = NULL;
bool using_dummy = false;
int val;