From 579e48edbb3d897e04bcf50ef630cab597fe6d84 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 17 Feb 2014 22:37:43 +0100 Subject: util/StringUtil: add function Strip() Replaces g_strstrip(). --- src/db/update/ExcludeList.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/db') 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); } -- cgit v1.2.3