util/AllocatedString: rename to BasicAllocatedString

To make things simpler, AllocatedString is now a non-template class.
This commit is contained in:
Max Kellermann
2021-01-14 12:39:45 +01:00
committed by Max Kellermann
parent 8d80280ab9
commit cfb7f8ab84
20 changed files with 73 additions and 64 deletions

View File

@@ -194,7 +194,7 @@ private:
bool is_exclusive;
bool enumerate_devices;
std::string device_config;
std::vector<std::pair<unsigned int, AllocatedString<char>>> device_desc;
std::vector<std::pair<unsigned int, AllocatedString>> device_desc;
std::shared_ptr<WinEvent> event;
std::optional<COM> com;
ComPtr<IMMDeviceEnumerator> enumerator;

View File

@@ -136,7 +136,7 @@ bool
HttpdClient::SendResponse() noexcept
{
char buffer[1024];
AllocatedString<> allocated = nullptr;
AllocatedString allocated = nullptr;
const char *response;
assert(state == State::RESPONSE);

View File

@@ -27,7 +27,7 @@
#include <string.h>
AllocatedString<>
AllocatedString
icy_server_metadata_header(const char *name,
const char *genre, const char *url,
const char *content_type, int metaint) noexcept
@@ -54,7 +54,7 @@ icy_server_metadata_header(const char *name,
content_type);
}
static AllocatedString<>
static AllocatedString
icy_server_metadata_string(const char *stream_title,
const char* stream_url) noexcept
{

View File

@@ -24,9 +24,9 @@
#include "tag/Type.h"
struct Tag;
template<typename T> class AllocatedString;
class AllocatedString;
AllocatedString<char>
AllocatedString
icy_server_metadata_header(const char *name,
const char *genre, const char *url,
const char *content_type, int metaint) noexcept;