Add missing 'std::' scope identifiers.
authorAndroid Tools Maintainers <android-tools-devel@lists.alioth.debian.org>
Thu, 28 Jul 2022 16:01:55 +0000 (17:01 +0100)
committerRoger Shimizu <rosh@debian.org>
Thu, 28 Jul 2022 16:01:55 +0000 (17:01 +0100)
Forwarded: not-needed

Gbp-Pq: Topic art
Gbp-Pq: Name fix-standard-namespace-errors.patch

art/libdexfile/dex/compact_offset_table.h
art/runtime/class_linker.cc

index ec759e200d1bc45df564b97483f20e4328b7249f..e651363f3ba4768e4d8f098b9de9ae9a308fb2c4 100644 (file)
@@ -28,7 +28,7 @@ class CompactOffsetTable {
  public:
   // This value is coupled with the leb chunk bitmask. That logic must also be adjusted when the
   // integer is modified.
-  static constexpr size_t kElementsPerIndex = 16;
+  static constexpr std::size_t kElementsPerIndex = 16;
 
   // Leb block format:
   // [uint16_t] 16 bit mask for what indexes actually have a non zero offset for the chunk.
@@ -61,7 +61,7 @@ class CompactOffsetTable {
                     uint32_t* out_table_offset);
 
   // 32 bit aligned for the offset table.
-  static constexpr size_t kAlignment = sizeof(uint32_t);
+  static constexpr std::size_t kAlignment = sizeof(uint32_t);
 };
 
 }  // namespace art
index 4a4171e283c9cbcc779eca6dd5d91257293cb604..5420c8e1275b8f0abe493529ddec442ccb3a8529 100644 (file)
@@ -3181,7 +3181,7 @@ struct ScopedDefiningClass {
     return Finish(h_klass);
   }
 
-  ObjPtr<mirror::Class> Finish(nullptr_t np ATTRIBUTE_UNUSED)
+  ObjPtr<mirror::Class> Finish(std::nullptr_t np ATTRIBUTE_UNUSED)
       REQUIRES_SHARED(Locks::mutator_lock_) {
     ScopedNullHandle<mirror::Class> snh;
     return Finish(snh);