From ec93c5e34d446d961133a0aca0de5fd99457d293 Mon Sep 17 00:00:00 2001
From: Jiao Lin <jiao.lin@gmail.com>
Date: Fri, 3 Nov 2017 14:58:07 -0400
Subject: [PATCH] Refs #21068. use Poco::Path for finding Facilities.xml

---
 Framework/Kernel/src/ConfigService.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Framework/Kernel/src/ConfigService.cpp b/Framework/Kernel/src/ConfigService.cpp
index fa32c5bad5a..06f57f5c66b 100644
--- a/Framework/Kernel/src/ConfigService.cpp
+++ b/Framework/Kernel/src/ConfigService.cpp
@@ -1788,8 +1788,9 @@ std::string ConfigServiceImpl::getFacilityFilename(const std::string &fName) {
 
   // look through all the possible files
   for (; instrDir != directoryNames.end(); ++instrDir) {
-    std::string filename = (*instrDir) + "Facilities.xml";
-
+    Poco::Path p(*instrDir);
+    p.append("Facilities.xml");
+    std::string filename = p.toString();
     Poco::File fileObj(filename);
     // stop when you find the first one
     if (fileObj.exists())
-- 
GitLab