[Groonga-commit] groonga/grnxx at e9d865d [master] Remove needless std::.

Back to archive index

susumu.yata null+****@clear*****
Thu Jul 24 11:17:30 JST 2014


susumu.yata	2014-07-24 11:17:30 +0900 (Thu, 24 Jul 2014)

  New Revision: e9d865d66d2ca135f0a3a97952135e03d923ce39
  https://github.com/groonga/grnxx/commit/e9d865d66d2ca135f0a3a97952135e03d923ce39

  Message:
    Remove needless std::.

  Modified files:
    lib/grnxx/db.cpp
    lib/grnxx/name.cpp
    lib/grnxx/name.hpp
    lib/grnxx/table.cpp

  Modified: lib/grnxx/db.cpp (+1 -1)
===================================================================
--- lib/grnxx/db.cpp    2014-07-24 11:15:34 +0900 (a77c7d1)
+++ lib/grnxx/db.cpp    2014-07-24 11:17:30 +0900 (eadd2b7)
@@ -138,7 +138,7 @@ unique_ptr<DB> open_db(Error *error,
     GRNXX_ERROR_SET(error, NOT_SUPPORTED_YET, "Not supported yet");
     return nullptr;
   }
-  std::unique_ptr<DB> db(new (nothrow) DB);
+  unique_ptr<DB> db(new (nothrow) DB);
   if (!db) {
     GRNXX_ERROR_SET(error, NO_MEMORY, "Memory allocation failed");
     return nullptr;

  Modified: lib/grnxx/name.cpp (+1 -1)
===================================================================
--- lib/grnxx/name.cpp    2014-07-24 11:15:34 +0900 (80fab4a)
+++ lib/grnxx/name.cpp    2014-07-24 11:17:30 +0900 (d418fc8)
@@ -24,7 +24,7 @@ bool Name::assign(Error *error, String name) {
     return false;
   }
 
-  std::unique_ptr<char[]> new_data(new (std::nothrow) char[name.size() + 1]);
+  unique_ptr<char[]> new_data(new (std::nothrow) char[name.size() + 1]);
   if (!new_data) {
     GRNXX_ERROR_SET(error, NO_MEMORY,
                     "Memory allocation failed: size = %" PRIi64, name.size());

  Modified: lib/grnxx/name.hpp (+1 -1)
===================================================================
--- lib/grnxx/name.hpp    2014-07-24 11:15:34 +0900 (85920e1)
+++ lib/grnxx/name.hpp    2014-07-24 11:17:30 +0900 (c3929b9)
@@ -42,7 +42,7 @@ class Name {
   bool assign(Error *error, String name);
 
  private:
-  std::unique_ptr<char[]> data_;
+  unique_ptr<char[]> data_;
   Int size_;
 
   static constexpr Int MIN_SIZE = 1;

  Modified: lib/grnxx/table.cpp (+1 -1)
===================================================================
--- lib/grnxx/table.cpp    2014-07-24 11:15:34 +0900 (e3a4935)
+++ lib/grnxx/table.cpp    2014-07-24 11:17:30 +0900 (80390de)
@@ -477,7 +477,7 @@ unique_ptr<Table> Table::create(Error *error,
                                 DB *db,
                                 String name,
                                 const TableOptions &options) {
-  std::unique_ptr<Table> table(new Table);
+  unique_ptr<Table> table(new Table);
   table->db_ = db;
   if (!table->name_.assign(error, name)) {
     return nullptr;
-------------- next part --------------
HTML����������������������������...
다운로드 



More information about the Groonga-commit mailing list
Back to archive index