summaryrefslogtreecommitdiff
path: root/src/core/resource/ResourceLocator.cpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-17 01:05:32 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-17 01:05:32 +0100
commitca0081e14b96eb6436ad349be2f2148520c16f38 (patch)
tree8b93e3a41637b5b124e4ad4570a51bb4519847e2 /src/core/resource/ResourceLocator.cpp
parent8eb2bed0115b5f6884fe12ecda80974aa6c21761 (diff)
Improved semantics of the return value of the autocomplete function: Empty return value explicitly means that the file does not exist at all.
Diffstat (limited to 'src/core/resource/ResourceLocator.cpp')
-rw-r--r--src/core/resource/ResourceLocator.cpp4
1 files changed, 2 insertions, 2 deletions
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<std::string> ResourceLocator::doAutocomplete(
const std::string &path, const ResourceType type,
const std::string &relativeTo) const
{
- // Default implementation
- return std::vector<std::string>{};
+ // Default implementation, just return the path again
+ return std::vector<std::string>{path};
}
/* Class StaticResourceLocator */