*** empty log message ***
This commit is contained in:
parent
687224f7e9
commit
2ea999e96c
2
mat.h
2
mat.h
@ -472,9 +472,7 @@ NRMat<T> & NRMat<T>::operator|=(const NRMat<T> &rhs)
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
void NRMat<T>::copyonwrite()
|
void NRMat<T>::copyonwrite()
|
||||||
{
|
{
|
||||||
#ifdef DEBUG
|
|
||||||
if (!count) laerror("Mat::copyonwrite of undefined matrix");
|
if (!count) laerror("Mat::copyonwrite of undefined matrix");
|
||||||
#endif
|
|
||||||
if (*count > 1) {
|
if (*count > 1) {
|
||||||
(*count)--;
|
(*count)--;
|
||||||
count = new int;
|
count = new int;
|
||||||
|
4
smat.h
4
smat.h
@ -468,9 +468,7 @@ NRSMat<T> & NRSMat<T>::operator=(const NRSMat<T> & rhs)
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
void NRSMat<T>::copyonwrite()
|
void NRSMat<T>::copyonwrite()
|
||||||
{
|
{
|
||||||
#ifdef DEBUG
|
if (!count) laerror("SMat::copyonwrite() of undefined Smat");
|
||||||
if (!count) laerror("probably an assignment to undefined Smat");
|
|
||||||
#endif
|
|
||||||
if (*count > 1) {
|
if (*count > 1) {
|
||||||
(*count)--;
|
(*count)--;
|
||||||
count = new int;
|
count = new int;
|
||||||
|
4
vec.h
4
vec.h
@ -579,9 +579,7 @@ NRVec<T>::~NRVec()
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
void NRVec<T>::copyonwrite()
|
void NRVec<T>::copyonwrite()
|
||||||
{
|
{
|
||||||
#ifdef DEBUG
|
if(!count) laerror("Vec::copyonwrite() of an undefined vector");
|
||||||
if(!count) laerror("probably an assignment to undefined vector");
|
|
||||||
#endif
|
|
||||||
if(*count > 1)
|
if(*count > 1)
|
||||||
{
|
{
|
||||||
(*count)--;
|
(*count)--;
|
||||||
|
Loading…
Reference in New Issue
Block a user