summaryrefslogtreecommitdiff
path: root/cmds/idmap2/libidmap2/ZipFile.cpp
diff options
context:
space:
mode:
authorMÃ¥rten Kongstad <marten.kongstad@sony.com>2018-11-29 08:23:14 +0100
committerTodd Kennedy <toddke@google.com>2018-12-21 08:16:09 -0800
commit0eba72a4dd3489a11af5ca93d0a2c334d486138b (patch)
tree65ce9130728ea1f6f8be0267226d4b43ad9ec210 /cmds/idmap2/libidmap2/ZipFile.cpp
parent2527fa3abdba19698f08cfbb5344d05e535d2e4f (diff)
idmap2: fix clang-tidy warnings [modernize-*]
Bug: 120024673 Test: mmm frameworks/base/cmds/idmap2; check output Change-Id: I8768169fb7b541eb6b1aa3311c46a710eb71aac9
Diffstat (limited to 'cmds/idmap2/libidmap2/ZipFile.cpp')
-rw-r--r--cmds/idmap2/libidmap2/ZipFile.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/cmds/idmap2/libidmap2/ZipFile.cpp b/cmds/idmap2/libidmap2/ZipFile.cpp
index 9fb611dd8e8d..15ec3f9d3afe 100644
--- a/cmds/idmap2/libidmap2/ZipFile.cpp
+++ b/cmds/idmap2/libidmap2/ZipFile.cpp
@@ -20,8 +20,7 @@
#include "idmap2/Result.h"
#include "idmap2/ZipFile.h"
-namespace android {
-namespace idmap2 {
+namespace android::idmap2 {
std::unique_ptr<MemoryChunk> MemoryChunk::Allocate(size_t size) {
void* ptr = ::operator new(sizeof(MemoryChunk) + size);
@@ -63,5 +62,4 @@ Result<uint32_t> ZipFile::Crc(const std::string& entryPath) const {
return status == 0 ? Result<uint32_t>(entry.crc32) : kResultError;
}
-} // namespace idmap2
-} // namespace android
+} // namespace android::idmap2