fix crash when copy'ing latent plugins
[ardour.git] / libs / ardour / data_type.cc
1 /*
2     Copyright (C) 2006 Paul Davis
3     Author: David Robillard
4
5     This program is free software; you can redistribute it and/or modify it
6     under the terms of the GNU General Public License as published by the Free
7     Software Foundation; either version 2 of the License, or (at your option)
8     any later version.
9
10     This program is distributed in the hope that it will be useful, but WITHOUT
11     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13     for more details.
14
15     You should have received a copy of the GNU General Public License along
16     with this program; if not, write to the Free Software Foundation, Inc.,
17     675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19
20 #include "ardour/data_type.h"
21 #include "pbd/i18n.h"
22
23 const char *
24 ARDOUR::DataType::to_i18n_string () const
25 {
26         switch (_symbol) {
27         case AUDIO: return _("audio");
28         case MIDI: return _("MIDI");
29         default: return _("unknown");
30         }
31 }