From abfbd55305587306730d5419b8a3b09e6a43abcb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 17 Oct 2013 21:59:35 +0200 Subject: fs/Path: rename to AllocatedPath The new class Path only holds a string pointer without being responsible for allocation/deallocation. The FileSystem.hxx library accepts Path arguments instead of AllocatedPath, to avoid forcing callers to allocate another string object. --- src/StickerDatabase.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/StickerDatabase.cxx') diff --git a/src/StickerDatabase.cxx b/src/StickerDatabase.cxx index 84aa4c1e0..3c9bdc2a9 100644 --- a/src/StickerDatabase.cxx +++ b/src/StickerDatabase.cxx @@ -107,13 +107,11 @@ sticker_prepare(const char *sql, Error &error) } bool -sticker_global_init(Path &&path, Error &error) +sticker_global_init(Path path, Error &error) { - int ret; + assert(!path.IsNull()); - if (path.IsNull()) - /* not configured */ - return true; + int ret; /* open/create the sqlite database */ -- cgit v1.2.3