~mysql/mysql-connector-cpp/trunk

« back to all changes in this revision

Viewing changes to driver/mysql_art_resultset.cpp

  • Committer: Hemant Dangi
  • Date: 2014-12-17 16:28:39 UTC
  • Revision ID: hemant.dangi@oracle.com-20141217162839-sdbpj3fcwn5gxjxh
Bug #75251: Add C++11 support and replace (deprecated in C++11) auto_ptr

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
 
2
Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved.
3
3
 
4
4
The MySQL Connector/C++ is licensed under the terms of the GPLv2
5
5
<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
196
196
 
197
197
 
198
198
/* {{{ MySQL_ArtResultSet::MySQL_ArtResultSet() -I- */
199
 
MySQL_ArtResultSet::MySQL_ArtResultSet(const StringList& fn, rset_t * const rs, boost::shared_ptr< MySQL_DebugLogger > & l)
 
199
MySQL_ArtResultSet::MySQL_ArtResultSet(const StringList& fn, boost::shared_ptr< rset_t > &rs, boost::shared_ptr< MySQL_DebugLogger > & l)
200
200
  : num_fields(static_cast<int>(fn.size())), rset(rs), current_record(rset->begin()),
201
201
    started(false), field_index_to_name_map(new sql::SQLString[num_fields]),
202
202
        num_rows(rset->size()), row_position(0), is_closed(false), logger(l)