Add removeAll to preferences (#987)

This removes all keys except for .type.
This commit is contained in:
Austin Shalit
2018-05-16 22:50:35 -04:00
committed by Peter Johnson
parent 2e0709f05b
commit f90e429bf9
4 changed files with 43 additions and 0 deletions

View File

@@ -52,6 +52,7 @@ class Preferences : public ErrorBase {
void PutLong(wpi::StringRef key, int64_t value);
bool ContainsKey(wpi::StringRef key);
void Remove(wpi::StringRef key);
void RemoveAll();
protected:
Preferences();