refactor(Core): apply clang-tidy modernize-pass-by-value (#3823)

This commit is contained in:
Francesco Borzì
2020-12-13 01:11:15 +01:00
committed by GitHub
parent 282966c117
commit adf436c937
10 changed files with 36 additions and 24 deletions

View File

@@ -9,11 +9,12 @@
#include <cassert>
#include <string>
#include <utility>
class DBCFile
{
public:
DBCFile(const std::string& filename);
DBCFile(std::string filename);
~DBCFile();
// Open database. It must be openened before it can be used.
@@ -25,7 +26,7 @@ public:
class Exception
{
public:
Exception(const std::string& message): message(message)
Exception(std::string message): message(std::move(message))
{ }
virtual ~Exception() = default;
const std::string& getMessage() {return message;}