mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-35632 HandlerSocket uses deprecated C++98 auto_ptr
Change uses of auto_ptr to unique_ptr
This commit is contained in:
committed by
Dave Gosselin
parent
78157c4765
commit
86b257f870
@@ -561,7 +561,7 @@ hstest_thread::test_9(int test_num)
|
||||
flds += std::string(buf);
|
||||
}
|
||||
int connected = 0;
|
||||
std::auto_ptr<auto_mysql_stmt> stmt;
|
||||
std::unique_ptr<auto_mysql_stmt> stmt;
|
||||
string_buffer wbuf;
|
||||
for (int i = 0; i < num; ++i) {
|
||||
const double tm1 = gettimeofday_double();
|
||||
@@ -1474,7 +1474,7 @@ hstest_main(int argc, char **argv)
|
||||
#endif
|
||||
const int num_thrs = shared.num_threads;
|
||||
typedef thread<hstest_thread> thread_type;
|
||||
typedef std::auto_ptr<thread_type> thread_ptr;
|
||||
typedef std::unique_ptr<thread_type> thread_ptr;
|
||||
typedef auto_ptrcontainer< std::vector<thread_type *> > thrs_type;
|
||||
thrs_type thrs;
|
||||
for (int i = 0; i < num_thrs; ++i) {
|
||||
|
Reference in New Issue
Block a user