mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-08 23:29:53 +01:00
Ptr op= takes const ref (fixes: #115)
This commit is contained in:
parent
62b7039a7b
commit
deb3ced619
@ -36,7 +36,7 @@ namespace Catch {
|
|||||||
swap( temp );
|
swap( temp );
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
Ptr& operator = ( Ptr& other ){
|
Ptr& operator = ( const Ptr& other ){
|
||||||
Ptr temp( other );
|
Ptr temp( other );
|
||||||
swap( temp );
|
swap( temp );
|
||||||
return *this;
|
return *this;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Generated: 2012-08-31 18:45:38.119837
|
* Generated: 2012-08-31 18:50:03.965736
|
||||||
* ----------------------------------------------------------
|
* ----------------------------------------------------------
|
||||||
* This file has been merged from multiple headers. Please don't edit it directly
|
* This file has been merged from multiple headers. Please don't edit it directly
|
||||||
* Copyright (c) 2012 Two Blue Cubes Ltd. All rights reserved.
|
* Copyright (c) 2012 Two Blue Cubes Ltd. All rights reserved.
|
||||||
@ -293,7 +293,7 @@ namespace Catch {
|
|||||||
swap( temp );
|
swap( temp );
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
Ptr& operator = ( Ptr& other ){
|
Ptr& operator = ( const Ptr& other ){
|
||||||
Ptr temp( other );
|
Ptr temp( other );
|
||||||
swap( temp );
|
swap( temp );
|
||||||
return *this;
|
return *this;
|
||||||
|
Loading…
Reference in New Issue
Block a user