changeset 2347:b360ae77cd49

[project @ 1996-07-25 09:10:54 by jwe]
author jwe
date Thu, 25 Jul 1996 09:10:54 +0000
parents 5baf74b55020
children a88c5cc51f62
files liboctave/Array.h
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/Array.h	Thu Jul 25 08:11:43 1996 +0000
+++ b/liboctave/Array.h	Thu Jul 25 09:10:54 1996 +0000
@@ -219,11 +219,7 @@
 
   Array<T>& qsort (int (*compare) (const void *, const void *))
     {
-      if (rep->count > 1)
-	{
-	  --rep->count;
-	  rep = new ArrayRep (*rep);
-	}
+      make_unique ();
 
       rep->qsort (compare);