aboutsummaryrefslogtreecommitdiffstats
path: root/src/sticker/StickerDatabase.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-01-28 19:33:56 +0100
committerMax Kellermann <max@duempel.org>2015-01-28 19:33:56 +0100
commit593bb5a8a7ba4c5a846a4443fe59ddeebdc45ced (patch)
treedb35a7f10c5f9f0e01f59d928dc02c1b72db58e0 /src/sticker/StickerDatabase.cxx
parent822ac7b100e6d0ed876ec8c6dea09f3ab0809655 (diff)
downloadmpd-593bb5a8a7ba4c5a846a4443fe59ddeebdc45ced.tar.gz
mpd-593bb5a8a7ba4c5a846a4443fe59ddeebdc45ced.tar.xz
mpd-593bb5a8a7ba4c5a846a4443fe59ddeebdc45ced.zip
StickerDatabase: convert the struct name to upper case
Diffstat (limited to '')
-rw-r--r--src/sticker/StickerDatabase.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/sticker/StickerDatabase.cxx b/src/sticker/StickerDatabase.cxx
index 09feb71c9..02eed362e 100644
--- a/src/sticker/StickerDatabase.cxx
+++ b/src/sticker/StickerDatabase.cxx
@@ -31,7 +31,7 @@
#include <assert.h>
-struct sticker {
+struct Sticker {
std::map<std::string, std::string> table;
};
@@ -340,13 +340,13 @@ sticker_delete_value(const char *type, const char *uri, const char *name,
}
void
-sticker_free(struct sticker *sticker)
+sticker_free(Sticker *sticker)
{
delete sticker;
}
const char *
-sticker_get_value(const struct sticker &sticker, const char *name)
+sticker_get_value(const Sticker &sticker, const char *name)
{
auto i = sticker.table.find(name);
if (i == sticker.table.end())
@@ -356,7 +356,7 @@ sticker_get_value(const struct sticker &sticker, const char *name)
}
void
-sticker_foreach(const sticker &sticker,
+sticker_foreach(const Sticker &sticker,
void (*func)(const char *name, const char *value,
void *user_data),
void *user_data)
@@ -365,10 +365,10 @@ sticker_foreach(const sticker &sticker,
func(i.first.c_str(), i.second.c_str(), user_data);
}
-struct sticker *
+Sticker *
sticker_load(const char *type, const char *uri, Error &error)
{
- sticker s;
+ Sticker s;
if (!sticker_list_values(s.table, type, uri, error))
return nullptr;
@@ -377,7 +377,7 @@ sticker_load(const char *type, const char *uri, Error &error)
/* don't return empty sticker objects */
return nullptr;
- return new sticker(std::move(s));
+ return new Sticker(std::move(s));
}
static sqlite3_stmt *