Skip to content

Commit f7467d5

Browse files
mcserepCopilot
andauthored
Consistency fixes where the extension string is used in string operations
Co-authored-by: Copilot <[email protected]>
1 parent 161b707 commit f7467d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/cpp/parser/src/cppparser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ model::BuildActionPtr CppParser::addBuildAction(
232232

233233
model::BuildActionPtr buildAction(new model::BuildAction);
234234

235-
auto extension = fs::path(command_.Filename).extension();
235+
auto extension = fs::path(command_.Filename).extension().string();
236236

237237
buildAction->command = boost::algorithm::join(command_.CommandLine, " ");
238238
buildAction->type

plugins/dummy/parser/src/dummyparser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ DummyParser::DummyParser(ParserContext& ctx_): AbstractParser(ctx_)
1717

1818
bool DummyParser::accept(const std::string& path_)
1919
{
20-
auto ext = boost::filesystem::path(path_).extension();
20+
auto ext = boost::filesystem::path(path_).extension().string();
2121
return ext == ".dummy";
2222
}
2323

0 commit comments

Comments
 (0)