Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make DefaultStorageKeyAllocator::Format protected so the class can be extended #20326

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/lib/support/DefaultStorageKeyAllocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class DefaultStorageKeyAllocator
// Event number counter.
const char * IMEventNumber() { return Format("g/im/ec"); }

private:
protected:
// The ENFORCE_FORMAT args are "off by one" because this is a class method,
// with an implicit "this" as first arg.
const char * ENFORCE_FORMAT(2, 3) Format(const char * format, ...)
Expand All @@ -126,6 +126,7 @@ class DefaultStorageKeyAllocator
return mKeyName;
}

private:
char mKeyName[PersistentStorageDelegate::kKeyLengthMax + 1] = { 0 };
};

Expand Down