Skip to content
This repository was archived by the owner on May 4, 2024. It is now read-only.

Commit c427982

Browse files
authored
Fixed ends with and fs path.
1 parent 3fb50dd commit c427982

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mtconnect/configuration/agent_config.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,12 @@ namespace mtconnect::configuration {
186186
buffer << file.rdbuf();
187187

188188
FileFormat fmt = MTCONNECT;
189-
if (ends_with(m_configFile, "json"s))
189+
if (ends_with(m_configFile.string(), "json"))
190190
{
191191
LOG(info) << "Parsing json configuration";
192192
fmt = JSON;
193193
}
194-
else if (ends_with(m_configFile, "xml"s))
194+
else if (ends_with(m_configFile.string(), "xml"))
195195
{
196196
LOG(info) << "Parsing xml configuration";
197197
fmt = XML;

0 commit comments

Comments
 (0)