aboutsummaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-17 22:37:43 +0100
committerMax Kellermann <max@duempel.org>2014-02-17 22:37:43 +0100
commit579e48edbb3d897e04bcf50ef630cab597fe6d84 (patch)
treec8976480c3b149495fa23b84170921218294db82 /src/db
parent6a08f2281a66b3d41a02350d2ba75f453976faac (diff)
downloadmpd-579e48edbb3d897e04bcf50ef630cab597fe6d84.tar.gz
mpd-579e48edbb3d897e04bcf50ef630cab597fe6d84.tar.xz
mpd-579e48edbb3d897e04bcf50ef630cab597fe6d84.zip
util/StringUtil: add function Strip()
Replaces g_strstrip().
Diffstat (limited to 'src/db')
-rw-r--r--src/db/update/ExcludeList.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/update/ExcludeList.cxx b/src/db/update/ExcludeList.cxx
index 7b691b36b..0a5fbac9f 100644
--- a/src/db/update/ExcludeList.cxx
+++ b/src/db/update/ExcludeList.cxx
@@ -1,4 +1,3 @@
-
/*
* Copyright (C) 2003-2014 The Music Player Daemon Project
* http://www.musicpd.org
@@ -27,6 +26,7 @@
#include "ExcludeList.hxx"
#include "fs/Path.hxx"
#include "fs/FileSystem.hxx"
+#include "util/StringUtil.hxx"
#include "util/Domain.hxx"
#include "Log.hxx"
@@ -58,7 +58,7 @@ ExcludeList::LoadFile(Path path_fs)
if (p != nullptr)
*p = 0;
- p = g_strstrip(line);
+ p = Strip(line);
if (*p != 0)
patterns.emplace_front(p);
}