summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-06-29 06:58:07 +0000
committerDavid Robillard <d@drobilla.net>2007-06-29 06:58:07 +0000
commiteb296b2c957f574334fae2aefd8b863cf7631769 (patch)
tree57a546f8c61a81b7088b23b9fcd92a5b9d578e9f /gtk2_ardour
parent44867662a3d020e042714d1c5e948b8c3afea941 (diff)
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
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/automation_controller.cc2
-rw-r--r--gtk2_ardour/automation_controller.h2
-rw-r--r--gtk2_ardour/plugin_selector.cc4
3 files changed, 4 insertions, 4 deletions
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();