Skip to content

Commit 51d328f

Browse files
authored
Fixed Clang 15 warnings
1 parent 5685a06 commit 51d328f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

main.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ static void ParseProgramOptions(int argc, const char *argv[], const ParsedOption
297297
auto it = findOpt(arg);
298298
if (it == end(options))
299299
{
300-
found(move(arg));
300+
found(std::move(arg));
301301
}
302302
else if (it->hasArg)
303303
{
@@ -315,7 +315,7 @@ static void ParseProgramOptions(int argc, const char *argv[], const ParsedOption
315315
cout << "No argument specified for " << arg << endl;
316316
throw ProgramOptionsError();
317317
}
318-
it->found(move(val));
318+
it->found(std::move(val));
319319
}
320320
else
321321
{
@@ -336,7 +336,11 @@ int main(int argc, const char *argv[])
336336

337337
try
338338
{
339-
ParseProgramOptions(argc, argv, options, [&files = progOptions.m_files](string &&arg){files.emplace_back(move(arg));});
339+
ParseProgramOptions(argc, argv, options,
340+
[&files = progOptions.m_files](string &&arg)
341+
{
342+
files.emplace_back(std::move(arg));
343+
});
340344

341345
unsigned long long n = progOptions.m_commentType;
342346
if (n == 0 || n > PvsStudioFreeComments::Comments.size())

0 commit comments

Comments
 (0)