From ca0081e14b96eb6436ad349be2f2148520c16f38 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Tue, 17 Feb 2015 01:05:32 +0100 Subject: Improved semantics of the return value of the autocomplete function: Empty return value explicitly means that the file does not exist at all. --- src/core/resource/ResourceLocator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/resource/ResourceLocator.cpp') diff --git a/src/core/resource/ResourceLocator.cpp b/src/core/resource/ResourceLocator.cpp index da38cbd..0498577 100644 --- a/src/core/resource/ResourceLocator.cpp +++ b/src/core/resource/ResourceLocator.cpp @@ -94,8 +94,8 @@ std::vector ResourceLocator::doAutocomplete( const std::string &path, const ResourceType type, const std::string &relativeTo) const { - // Default implementation - return std::vector{}; + // Default implementation, just return the path again + return std::vector{path}; } /* Class StaticResourceLocator */ -- cgit v1.2.3