mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-19 10:34:25 +03:00
Bug fix/clang-tidy-performance (#300)
Various clang-tidy-performance fixes: * noexcept * performance-noexcept-swap * performance * performance-move-const-arg * performance-unnecessary-value-param * performance-inefficient-vector-operation * performance-no-int-to-ptr * add performance * performance-inefficient-string-concatenation * clang-analyzer-deadcode.DeadStores * performance-inefficient-vector-operation * clang-analyzer-core.NullDereference * clang-analyzer-core.UndefinedBinaryOperatorResult * clang-analyzer-core.CallAndMessage --------- Co-authored-by: gtsoul-tech <gtsoulkanakis@gmail.com>
This commit is contained in:
@@ -44,7 +44,7 @@ class ParseError : public CompileError {
|
||||
public:
|
||||
// Note: 'why' should describe why the error occurred and end with a
|
||||
// full stop, but no line break.
|
||||
explicit ParseError(std::string why) : CompileError(std::move(why)) {}
|
||||
explicit ParseError(const std::string& why) : CompileError(why) {}
|
||||
|
||||
~ParseError() override;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user