A few minor warning fixes
git-svn-id: svn://localhost/ardour2/trunk@776 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
fece970e26
commit
60e9d9c3df
@ -108,7 +108,7 @@ void
|
|||||||
PanAutomationTimeAxisView::add_line (AutomationLine& line)
|
PanAutomationTimeAxisView::add_line (AutomationLine& line)
|
||||||
{
|
{
|
||||||
char buf[32];
|
char buf[32];
|
||||||
snprintf(buf,32,"Line %u",lines.size()+1);
|
snprintf(buf,32,"Line %zu",lines.size()+1);
|
||||||
multiline_selector.append_text(buf);
|
multiline_selector.append_text(buf);
|
||||||
|
|
||||||
if (lines.empty()) {
|
if (lines.empty()) {
|
||||||
|
@ -1258,10 +1258,10 @@ Panner::set_state (const XMLNode& node)
|
|||||||
float x, y;
|
float x, y;
|
||||||
|
|
||||||
prop = (*niter)->property (X_("x"));
|
prop = (*niter)->property (X_("x"));
|
||||||
sscanf (prop->value().c_str(), "%.12g", &x);
|
sscanf (prop->value().c_str(), "%g", &x);
|
||||||
|
|
||||||
prop = (*niter)->property (X_("y"));
|
prop = (*niter)->property (X_("y"));
|
||||||
sscanf (prop->value().c_str(), "%.12g", &y);
|
sscanf (prop->value().c_str(), "%g", &y);
|
||||||
|
|
||||||
outputs.push_back (Output (x, y));
|
outputs.push_back (Output (x, y));
|
||||||
}
|
}
|
||||||
|
@ -152,7 +152,7 @@ bool
|
|||||||
Track::can_record()
|
Track::can_record()
|
||||||
{
|
{
|
||||||
bool will_record = true;
|
bool will_record = true;
|
||||||
for (int i = 0; i < _inputs.size() && will_record; i++) {
|
for (size_t i = 0; i < _inputs.size() && will_record; i++) {
|
||||||
if (!_inputs[i]->connected())
|
if (!_inputs[i]->connected())
|
||||||
will_record = false;
|
will_record = false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user