Skip to content

Commit

Permalink
Fix shadow var error.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuscu committed Nov 7, 2024
1 parent 211b1e4 commit 57cc106
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/logging/include/logging/String.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ namespace string {
char* mBufPtr = nullptr;
};

template<size_t size>
template<size_t SIZE>
class stackstring : stackstringview {
public:
stackstring() {
mSize = size - 1;
mBufPtr = mBuf[0];
memset(mBufPtr, 0, size);
mSize = SIZE - 1u;
mBufPtr = &mBuf[0];
memset(mBufPtr, 0, SIZE);
}
~stackstring() = default;

Expand Down

0 comments on commit 57cc106

Please sign in to comment.