[tidy/linux] modernize-use-default
This commit is contained in:
@@ -25,7 +25,7 @@ class Layer;
|
||||
|
||||
class Bucket : private util::noncopyable {
|
||||
public:
|
||||
Bucket() : uploaded(false) {}
|
||||
Bucket() = default;
|
||||
|
||||
// As long as this bucket has a Prepare render pass, this function is getting called. Typically,
|
||||
// this only happens once when the bucket is being rendered for the first time.
|
||||
@@ -49,8 +49,7 @@ public:
|
||||
virtual void swapRenderData() {}
|
||||
|
||||
protected:
|
||||
util::Atomic<bool> uploaded;
|
||||
|
||||
util::Atomic<bool> uploaded = { false };
|
||||
};
|
||||
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -153,13 +153,12 @@ TEST(SpriteStore, ReplaceWithDifferentDimensions) {
|
||||
|
||||
class SpriteStoreTest {
|
||||
public:
|
||||
SpriteStoreTest()
|
||||
: spriteStore(1.0) {}
|
||||
SpriteStoreTest() = default;
|
||||
|
||||
util::RunLoop loop;
|
||||
StubFileSource fileSource;
|
||||
StubStyleObserver observer;
|
||||
SpriteStore spriteStore;
|
||||
SpriteStore spriteStore = { 1.0 };
|
||||
|
||||
void run() {
|
||||
// Squelch logging.
|
||||
|
||||
Reference in New Issue
Block a user