Applied modernize-pass-by-value clang-tidy fixes

This commit is contained in:
Bartek Kryza
2022-12-20 22:40:15 +01:00
parent 0ce7b533f4
commit 1116c3ab67
12 changed files with 46 additions and 35 deletions

View File

@@ -18,6 +18,7 @@
#pragma once
#include <string>
#include <utility>
namespace clanguml::common::model {
@@ -25,8 +26,8 @@ class source_location {
public:
source_location() = default;
source_location(const std::string &f, unsigned int l)
: file_{f}
source_location(std::string f, unsigned int l)
: file_{std::move(f)}
, line_{l}
{
}