[tidy/linux] modernize-use-default

This commit is contained in:
Bruno de Oliveira Abinader
2016-06-14 15:17:41 +03:00
parent 7f60d5e403
commit 001b545290
2 changed files with 4 additions and 6 deletions

View File

@@ -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

View File

@@ -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.