[core] use #pragma once instead of ifdef include guards
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#ifndef MBGL_TEST_FIXTURE_LOG_OBSERVER
|
||||
#define MBGL_TEST_FIXTURE_LOG_OBSERVER
|
||||
#pragma once
|
||||
|
||||
#include <mbgl/platform/log.hpp>
|
||||
|
||||
@@ -67,5 +66,3 @@ private:
|
||||
using FixtureLogObserver = FixtureLog::Observer;
|
||||
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef TEST_RESOURCES_STUB_FILE_SOURCE
|
||||
#define TEST_RESOURCES_STUB_FILE_SOURCE
|
||||
#pragma once
|
||||
|
||||
#include <mbgl/storage/file_source.hpp>
|
||||
#include <mbgl/util/timer.hpp>
|
||||
@@ -40,6 +39,4 @@ private:
|
||||
util::Timer timer;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef MBGL_TEST_STUB_STYLE_OBSERVER
|
||||
#define MBGL_TEST_STUB_STYLE_OBSERVER
|
||||
#pragma once
|
||||
|
||||
#include <mbgl/style/style_observer.hpp>
|
||||
|
||||
@@ -64,5 +63,3 @@ public:
|
||||
};
|
||||
|
||||
} // namespace mbgl
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef MBGL_TEST_UTIL
|
||||
#define MBGL_TEST_UTIL
|
||||
#pragma once
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <TargetConditionals.h>
|
||||
@@ -76,5 +75,3 @@ void checkImage(const std::string& base,
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user