mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-25 05:59:24 +00:00
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
|
@ -149,7 +149,7 @@ namespace {
|
|||
m_testAsFunction();
|
||||
}
|
||||
|
||||
std::string extractClassName( StringRef const& classOrQualifiedMethodName ) {
|
||||
std::string extractClassName( StringRef classOrQualifiedMethodName ) {
|
||||
std::string className(classOrQualifiedMethodName);
|
||||
if( startsWith( className, '&' ) )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue