diff liboctave/Array.h @ 2347:b360ae77cd49

[project @ 1996-07-25 09:10:54 by jwe]
author jwe
date Thu, 25 Jul 1996 09:10:54 +0000
parents 2fbf9bb1cd7a
children 58e5955495d7
line wrap: on
line diff
--- a/liboctave/Array.h
+++ b/liboctave/Array.h
@@ -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);