Pass other StringRef arguments by value instead of by-ref
Apart from being clearer, it also improves the overall codesize of the implementation library, and should improve the performance as well, by removing one level of indirection.
This commit is contained in:
parent
074017f5ad
commit
61e16416a9
11 changed files with 19 additions and 19 deletions
|
@ -32,7 +32,7 @@ namespace Catch {
|
|||
|
||||
public:
|
||||
AssertionHandler
|
||||
( StringRef const& macroName,
|
||||
( StringRef macroName,
|
||||
SourceLineInfo const& lineInfo,
|
||||
StringRef capturedExpression,
|
||||
ResultDisposition::Flags resultDisposition );
|
||||
|
@ -49,7 +49,7 @@ namespace Catch {
|
|||
}
|
||||
void handleExpr( ITransientExpression const& expr );
|
||||
|
||||
void handleMessage(ResultWas::OfType resultType, StringRef const& message);
|
||||
void handleMessage(ResultWas::OfType resultType, StringRef message);
|
||||
|
||||
void handleExceptionThrownAsExpected();
|
||||
void handleUnexpectedExceptionNotThrown();
|
||||
|
@ -64,7 +64,7 @@ namespace Catch {
|
|||
auto allowThrows() const -> bool;
|
||||
};
|
||||
|
||||
void handleExceptionMatchExpr( AssertionHandler& handler, std::string const& str, StringRef const& matcherString );
|
||||
void handleExceptionMatchExpr( AssertionHandler& handler, std::string const& str, StringRef matcherString );
|
||||
|
||||
} // namespace Catch
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue