Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
marcizhu committed Jul 2, 2017
1 parent 2198fe5 commit 844e82b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cereal/Cereal/src/Buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ namespace Cereal {
return true;
}

void shrink() noexcept
void shrink()
{
byte* temp = new byte[offset];

Expand Down
2 changes: 1 addition & 1 deletion Cereal/Cereal/src/Database.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,4 +215,4 @@ namespace Cereal {
const std::vector<Object*>& getObjects() const { return objects; }
};

}
}
10 changes: 5 additions & 5 deletions Cereal/Cereal/src/Header.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace Cereal {
delete databases[i];
}

void read(Buffer& buffer) noexcept
void read(Buffer& buffer)
{
unsigned short magic = buffer.readBytes<unsigned short>();

Expand Down Expand Up @@ -94,7 +94,7 @@ namespace Cereal {
return true;
}

inline unsigned int getSize() const noexcept
inline unsigned int getSize() const
{
unsigned int ret = sizeof(short) + sizeof(byte) + (sizeof(unsigned int) * (unsigned int)databases.size());

Expand All @@ -104,17 +104,17 @@ namespace Cereal {
return ret;
}

Database* getDatabase(std::string name) const noexcept
Database* getDatabase(std::string name) const
{
for (Database* db : databases)
if (db->getName() == name) return db;

return nullptr;
}

void addDatabase(Database* db) noexcept { databases.push_back(db); }
void addDatabase(Database* db) { databases.push_back(db); }

const std::vector<Database*>& getDatabases() const noexcept { return databases; }
const std::vector<Database*>& getDatabases() const { return databases; }
};

}
2 changes: 1 addition & 1 deletion Cereal/Cereal/src/Object.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ namespace Cereal {
const std::vector<Array*>& getArrays() const { return arrays; }
};

}
}

1 comment on commit 844e82b

@raresica1234
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NICE!

Please sign in to comment.