mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-31 00:47:56 +00:00
Changed "const X ref"s to "X const ref"s
- Brought older code up to current convention (with the help of a Python script)
This commit is contained in:
parent
d0d4d93a6b
commit
2a9d8d9e36
44 changed files with 297 additions and 297 deletions
|
@ -56,13 +56,13 @@ namespace Catch {
|
|||
|
||||
namespace Detail{
|
||||
|
||||
inline bool startsWith( const std::string& str, const std::string& sub ) {
|
||||
inline bool startsWith( std::string const& str, std::string const& sub ) {
|
||||
return str.length() > sub.length() && str.substr( 0, sub.length() ) == sub;
|
||||
}
|
||||
|
||||
inline std::string getAnnotation( Class cls,
|
||||
const std::string& annotationName,
|
||||
const std::string& testCaseName ) {
|
||||
std::string const& annotationName,
|
||||
std::string const& testCaseName ) {
|
||||
NSString* selStr = [[NSString alloc] initWithFormat:@"Catch_%s_%s", annotationName.c_str(), testCaseName.c_str()];
|
||||
SEL sel = NSSelectorFromString( selStr );
|
||||
arcSafeRelease( selStr );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue