summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-11-30 22:23:27 +0100
committerMax Kellermann <max@musicpd.org>2020-11-30 22:23:28 +0100
commitb47e0cffddecaf7c23fa7ae4f3704ad714f834eb (patch)
tree705097f676838dbba5a717ad5c06dcb878daa781 /src/lib
parent3af35aee9ebed4893b3bc21e18493d556e0f19ef (diff)
util/TemplateString: rename CharAsString() to FromChar()
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/dbus/Types.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/dbus/Types.hxx b/src/lib/dbus/Types.hxx
index 3319d04e3..99662dc45 100644
--- a/src/lib/dbus/Types.hxx
+++ b/src/lib/dbus/Types.hxx
@@ -42,7 +42,7 @@ namespace ODBus {
template<int type>
struct BasicTypeTraits {
static constexpr int TYPE = type;
- static constexpr auto as_string = TemplateString::CharAsString(TYPE);
+ static constexpr auto as_string = TemplateString::FromChar(TYPE);
};
template<typename T>
@@ -74,7 +74,7 @@ struct ArrayTypeTraits {
static constexpr int TYPE = DBUS_TYPE_ARRAY;
static constexpr auto as_string =
- TemplateString::Concat(TemplateString::CharAsString(TYPE),
+ TemplateString::Concat(TemplateString::FromChar(TYPE),
ContainedTraits::as_string);
};
@@ -83,10 +83,10 @@ struct DictEntryTypeTraits {
static constexpr int TYPE = DBUS_TYPE_DICT_ENTRY;
static constexpr auto as_string =
- TemplateString::Concat(TemplateString::CharAsString(DBUS_DICT_ENTRY_BEGIN_CHAR),
+ TemplateString::Concat(TemplateString::FromChar(DBUS_DICT_ENTRY_BEGIN_CHAR),
KeyT::as_string,
ValueT::as_string,
- TemplateString::CharAsString(DBUS_DICT_ENTRY_END_CHAR));
+ TemplateString::FromChar(DBUS_DICT_ENTRY_END_CHAR));
};
using VariantTypeTraits = BasicTypeTraits<DBUS_TYPE_VARIANT>;
@@ -111,9 +111,9 @@ struct StructTypeTraits {
static constexpr int TYPE = DBUS_TYPE_STRUCT;
static constexpr auto as_string =
- TemplateString::Concat(TemplateString::CharAsString(DBUS_STRUCT_BEGIN_CHAR),
+ TemplateString::Concat(TemplateString::FromChar(DBUS_STRUCT_BEGIN_CHAR),
ConcatTypeAsString<ContainedTraits...>::as_string,
- TemplateString::CharAsString(DBUS_STRUCT_END_CHAR));
+ TemplateString::FromChar(DBUS_STRUCT_END_CHAR));
};
} /* namespace ODBus */