commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r3457 - gnuradio/branches/developers/jcorgan/wip/ezdop


From: jcorgan
Subject: [Commit-gnuradio] r3457 - gnuradio/branches/developers/jcorgan/wip/ezdop/src/host/ezdop
Date: Sat, 2 Sep 2006 14:31:30 -0600 (MDT)

Author: jcorgan
Date: 2006-09-02 14:31:30 -0600 (Sat, 02 Sep 2006)
New Revision: 3457

Modified:
   gnuradio/branches/developers/jcorgan/wip/ezdop/src/host/ezdop/ezdop.cc
Log:
Switched to scoped_array.

Modified: gnuradio/branches/developers/jcorgan/wip/ezdop/src/host/ezdop/ezdop.cc
===================================================================
--- gnuradio/branches/developers/jcorgan/wip/ezdop/src/host/ezdop/ezdop.cc      
2006-09-02 07:13:31 UTC (rev 3456)
+++ gnuradio/branches/developers/jcorgan/wip/ezdop/src/host/ezdop/ezdop.cc      
2006-09-02 20:31:30 UTC (rev 3457)
@@ -23,7 +23,7 @@
 #include "ezdop.h"
 
 // Boost includes
-#include <boost/shared_array.hpp>
+#include <boost/scoped_array.hpp>
 
 // System includes (FIXME: autoconf these)
 #include <cassert>
@@ -222,7 +222,7 @@
     return rd;
 }
 
-typedef boost::shared_array<unsigned char> unsigned_char_sarray;
+typedef boost::scoped_array<unsigned char> unsigned_char_scoped_array;
 
 int ezdop::read_iq(complex<float> *buffer, unsigned int samples)
 {
@@ -232,7 +232,7 @@
 
     // 4 phases, d_rate samples per phase, 2 bytes per sample
     int raw_size = 8*d_rate*samples;
-    unsigned_char_sarray raw = unsigned_char_sarray(new unsigned 
char[raw_size]);
+    unsigned_char_scoped_array raw(new unsigned char[raw_size]);
 
     // Read until required bytes are read. Will block until bytes arrive.
     int rd = 0;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]