Skip to content

Commit

Permalink
Remove needless std::.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yata committed Jul 24, 2014
1 parent bd0e228 commit e9d865d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/grnxx/db.cpp
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion lib/grnxx/name.cpp
Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion lib/grnxx/name.hpp
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion lib/grnxx/table.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit e9d865d

Please sign in to comment.