From e6d79e896c540c3e758ebc4b730ca71987c2cee6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 26 Jul 2018 12:20:59 +0200 Subject: loplugin:returnconstant in helpcompiler and fix scanForFiles to return false on error Change-Id: I246e906de9985947be421d361340874c94a2102d Reviewed-on: https://gerrit.libreoffice.org/58085 Tested-by: Jenkins Reviewed-by: Noel Grandin --- helpcompiler/source/HelpIndexer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helpcompiler/source/HelpIndexer.cxx') diff --git a/helpcompiler/source/HelpIndexer.cxx b/helpcompiler/source/HelpIndexer.cxx index 870db09e0faa..d2380c53d3d1 100644 --- a/helpcompiler/source/HelpIndexer.cxx +++ b/helpcompiler/source/HelpIndexer.cxx @@ -96,7 +96,7 @@ bool HelpIndexer::scanForFiles(OUString const & path) { osl::Directory dir(path); if (osl::FileBase::E_None != dir.open()) { d_error = "Error reading directory " + path; - return true; + return false; } osl::DirectoryItem item; -- cgit