Make the StringIndexer default constructor protected (#1852)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user