From eb296b2c957f574334fae2aefd8b863cf7631769 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 29 Jun 2007 06:58:07 +0000 Subject: Reduce overhead of multi-type-ness (last Summer's SoC): Use uint32_t instead of size_t counts (halves size of ChanCount on 64-bit). Shift DataType values down to eliminate subtraction every index of a ChanCount or *Set. Allow using DataType directly as an array index (prettier/terser). Fix some mixed spaces/tabs in file comment headers. git-svn-id: svn://localhost/ardour2/trunk@2082 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/automation_controller.cc | 2 +- gtk2_ardour/automation_controller.h | 2 +- gtk2_ardour/plugin_selector.cc | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'gtk2_ardour') diff --git a/gtk2_ardour/automation_controller.cc b/gtk2_ardour/automation_controller.cc index a72aa0ba7d..3149b9784f 100644 --- a/gtk2_ardour/automation_controller.cc +++ b/gtk2_ardour/automation_controller.cc @@ -1,6 +1,6 @@ /* Copyright (C) 2007 Paul Davis - Author: Dave Robillard + Author: Dave Robillard This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/gtk2_ardour/automation_controller.h b/gtk2_ardour/automation_controller.h index 042f4a3b96..f9e8ab4ce3 100644 --- a/gtk2_ardour/automation_controller.h +++ b/gtk2_ardour/automation_controller.h @@ -1,6 +1,6 @@ /* Copyright (C) 2007 Paul Davis - Author: Dave Robillard + Author: Dave Robillard This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/gtk2_ardour/plugin_selector.cc b/gtk2_ardour/plugin_selector.cc index 7333e45242..6eb12027d5 100644 --- a/gtk2_ardour/plugin_selector.cc +++ b/gtk2_ardour/plugin_selector.cc @@ -270,8 +270,8 @@ PluginSelector::input_refiller () // Insert into GTK list for (row = 0, i=plugs.begin(); i != plugs.end(); ++i, ++row) { - snprintf (ibuf, sizeof(ibuf)-1, "%zu", (*i)->n_inputs.n_total()); - snprintf (obuf, sizeof(obuf)-1, "%zu", (*i)->n_outputs.n_total()); + snprintf (ibuf, sizeof(ibuf)-1, "%u", (*i)->n_inputs.n_total()); + snprintf (obuf, sizeof(obuf)-1, "%u", (*i)->n_outputs.n_total()); Gtk::TreeModel::Row newrow = *(lmodel->append()); newrow[lcols.name] = (*i)->name.c_str(); -- cgit v1.2.3