Make the StringIndexer default constructor protected (#1852)

This commit is contained in:
Tim Sylvester
2023-11-09 11:19:44 -08:00
committed by GitHub
parent c8010dba7d
commit a880247e14
3 changed files with 13 additions and 2 deletions

View File

@@ -4,7 +4,13 @@
#include <cstdint>
using namespace mbgl;
using mbgl::stringIndexer;
// Allow public default construction
class StringIndexer : public mbgl::StringIndexer {
public:
StringIndexer() {}
};
TEST(StringIndexer, SingletonStringIndexer) {
EXPECT_GE(stringIndexer().size(), 0);