Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 5c1a421

Browse files
committed
Use new shiny syntax
1 parent 78840ed commit 5c1a421

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shell/platform/darwin/common/buffer_conversions.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
public:
1616
explicit NSDataMapping(NSData* data) : data_(data) {}
1717

18-
size_t GetSize() const override { return [data_ length]; }
18+
size_t GetSize() const override { return data_.length; }
1919

20-
const uint8_t* GetMapping() const override { return static_cast<const uint8_t*>([data_ bytes]); }
20+
const uint8_t* GetMapping() const override { return static_cast<const uint8_t*>(data_.bytes); }
2121

2222
bool IsDontNeedSafe() const override { return false; }
2323

0 commit comments

Comments
 (0)