aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs/AllocatedPath.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-11-30 00:17:08 +0100
committerMax Kellermann <max@duempel.org>2014-11-30 00:28:27 +0100
commit4f80a129f13daae72e0463923250534e0d437026 (patch)
treec7e0a3713cd32b6ac7dbf318c418be79f907c23a /src/fs/AllocatedPath.hxx
parent6987f2ba82ca2205efa5a0ff9088f4555fe607c1 (diff)
downloadmpd-4f80a129f13daae72e0463923250534e0d437026.tar.gz
mpd-4f80a129f13daae72e0463923250534e0d437026.tar.xz
mpd-4f80a129f13daae72e0463923250534e0d437026.zip
fs/Charset: return std::string from PathFromUTF8()
Don't expose pointer that requires the caller to invoke g_free(), because that's GLib-only.
Diffstat (limited to '')
-rw-r--r--src/fs/AllocatedPath.hxx7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/fs/AllocatedPath.hxx b/src/fs/AllocatedPath.hxx
index c345470c8..73b6891ad 100644
--- a/src/fs/AllocatedPath.hxx
+++ b/src/fs/AllocatedPath.hxx
@@ -44,13 +44,6 @@ class AllocatedPath {
string value;
- struct Donate {};
-
- /**
- * Donate the allocated pointer to a new #AllocatedPath object.
- */
- AllocatedPath(Donate, pointer _value);
-
AllocatedPath(const_pointer _value):value(_value) {}
AllocatedPath(string &&_value):value(std::move(_value)) {}