*** 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>
|
||||
void NRMat<T>::copyonwrite()
|
||||
{
|
||||
#ifdef DEBUG
|
||||
if (!count) laerror("Mat::copyonwrite of undefined matrix");
|
||||
#endif
|
||||
if (*count > 1) {
|
||||
(*count)--;
|
||||
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>
|
||||
void NRSMat<T>::copyonwrite()
|
||||
{
|
||||
#ifdef DEBUG
|
||||
if (!count) laerror("probably an assignment to undefined Smat");
|
||||
#endif
|
||||
if (!count) laerror("SMat::copyonwrite() of undefined Smat");
|
||||
if (*count > 1) {
|
||||
(*count)--;
|
||||
count = new int;
|
||||
|
Loading…
Reference in New Issue
Block a user