comparison liboctave/idx-vector.h @ 10312:cbc402e64d83

untabify liboctave header files
author John W. Eaton <jwe@octave.org>
date Thu, 11 Feb 2010 12:14:48 -0500
parents 22a7913bbeb5
children de2d43bcb083
comparison
equal deleted inserted replaced
10311:a217e1d74353 10312:cbc402e64d83
521 idx_vector (const idx_vector& a) : rep (a.rep) { rep->count++; } 521 idx_vector (const idx_vector& a) : rep (a.rep) { rep->count++; }
522 522
523 ~idx_vector (void) 523 ~idx_vector (void)
524 { 524 {
525 if (--rep->count == 0) 525 if (--rep->count == 0)
526 delete rep; 526 delete rep;
527 } 527 }
528 528
529 idx_vector& operator = (const idx_vector& a) 529 idx_vector& operator = (const idx_vector& a)
530 { 530 {
531 if (this != &a) 531 if (this != &a)
532 { 532 {
533 if (--rep->count == 0) 533 if (--rep->count == 0)
534 delete rep; 534 delete rep;
535 535
536 rep = a.rep; 536 rep = a.rep;
537 rep->count++; 537 rep->count++;
538 } 538 }
539 return *this; 539 return *this;
540 } 540 }
541 541
542 idx_class_type idx_class (void) const { return rep->idx_class (); } 542 idx_class_type idx_class (void) const { return rep->idx_class (); }
543 543