Skip to content

Commit 7822b8a

Browse files
committed
[lldb/StringPrinter] Convert DecodedCharBuffer to a class, NFC
The m_size and m_data members of DecodedCharBuffer are meant to be private.
1 parent a3fcd64 commit 7822b8a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lldb/source/DataFormatters/StringPrinter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ using StringElementType = StringPrinter::StringElementType;
3030
/// DecodedCharBuffer stores the decoded contents of a single character. It
3131
/// avoids managing memory on the heap by copying decoded bytes into an in-line
3232
/// buffer.
33-
struct DecodedCharBuffer {
34-
static constexpr unsigned MaxLength = 16;
35-
33+
class DecodedCharBuffer {
3634
public:
3735
DecodedCharBuffer(std::nullptr_t) {}
3836

@@ -50,6 +48,8 @@ struct DecodedCharBuffer {
5048
size_t GetSize() const { return m_size; }
5149

5250
private:
51+
static constexpr unsigned MaxLength = 16;
52+
5353
size_t m_size = 0;
5454
uint8_t m_data[MaxLength] = {0};
5555
};

0 commit comments

Comments
 (0)