~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/archive_test.cc

  • Committer: Monty Taylor
  • Date: 2010-11-08 18:26:08 UTC
  • mto: This revision was merged to the branch mainline in revision 1931.
  • Revision ID: mordred@inaugust.com-20101108182608-lci86acl7r53sbi3
Replaced auto_ptr with scoped_ptr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
# endif
36
36
#endif
37
37
 
 
38
#include <boost/scoped_ptr.hpp>
 
39
 
38
40
#define COMMENT_STRING "Your bases"
39
41
#define FRM_STRING "My bases"
40
42
#define TEST_FILENAME "test.az"
112
114
  int error;
113
115
  unsigned int x;
114
116
  int written_rows= 0;
115
 
  std::auto_ptr<azio_stream> writer_handle_ap(new azio_stream);
116
 
  std::auto_ptr<azio_stream> reader_handle_ap(new azio_stream);
 
117
  boost::scoped_ptr<azio_stream> writer_handle_ap(new azio_stream);
 
118
  boost::scoped_ptr<azio_stream> reader_handle_ap(new azio_stream);
117
119
  azio_stream &writer_handle= *writer_handle_ap.get();
118
120
  azio_stream &reader_handle= *reader_handle_ap.get();
119
121
 
289
291
int size_test(uint64_t length, uint64_t rows_to_test_for,
290
292
              az_method method)
291
293
{
292
 
  std::auto_ptr<azio_stream> writer_handle_ap(new azio_stream);
293
 
  std::auto_ptr<azio_stream> reader_handle_ap(new azio_stream);
 
294
  boost::scoped_ptr<azio_stream> writer_handle_ap(new azio_stream);
 
295
  boost::scoped_ptr<azio_stream> reader_handle_ap(new azio_stream);
294
296
  azio_stream &writer_handle= *writer_handle_ap.get();
295
297
  azio_stream &reader_handle= *reader_handle_ap.get();
296
298
  uint64_t write_length;