diff options
author | Max Kellermann <max@duempel.org> | 2013-07-29 07:37:52 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-07-29 07:45:58 +0200 |
commit | 14f21378e3c623ef8ab1a0fa734a6b35bc4d9b58 (patch) | |
tree | 472314e91fa4706a654fb6ef68558be40dfe632a /src/TagTable.hxx | |
parent | bd42aeab462887a0e5b98ca5d3f80f700046ba52 (diff) | |
download | mpd-14f21378e3c623ef8ab1a0fa734a6b35bc4d9b58.tar.gz mpd-14f21378e3c623ef8ab1a0fa734a6b35bc4d9b58.tar.xz mpd-14f21378e3c623ef8ab1a0fa734a6b35bc4d9b58.zip |
tag_table: convert to C++
Diffstat (limited to '')
-rw-r--r-- | src/TagTable.hxx (renamed from src/tag_table.h) | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tag_table.h b/src/TagTable.hxx index 8e2172c18..0d249d181 100644 --- a/src/tag_table.h +++ b/src/TagTable.hxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003-2011 The Music Player Daemon Project + * Copyright (C) 2003-2013 The Music Player Daemon Project * http://www.musicpd.org * * This program is free software; you can redistribute it and/or modify @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef MPD_TAG_TABLE_H -#define MPD_TAG_TABLE_H +#ifndef MPD_TAG_TABLE_HXX +#define MPD_TAG_TABLE_HXX #include "tag.h" #include "gcc.h" @@ -40,7 +40,7 @@ gcc_pure static inline enum tag_type tag_table_lookup(const struct tag_table *table, const char *name) { - for (; table->name != NULL; ++table) + for (; table->name != nullptr; ++table) if (strcmp(name, table->name) == 0) return table->type; @@ -56,7 +56,7 @@ gcc_pure static inline enum tag_type tag_table_lookup_i(const struct tag_table *table, const char *name) { - for (; table->name != NULL; ++table) + for (; table->name != nullptr; ++table) if (g_ascii_strcasecmp(name, table->name) == 0) return table->type; |