core: rename mbgl namespace to mln (#4487)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Bart Louwers
2026-08-14 23:25:20 +02:00
committed by GitHub
parent 836b862984
commit 550f64be22
1970 changed files with 8931 additions and 8967 deletions

View File

@@ -26,7 +26,7 @@
namespace {
using namespace mbgl::util;
using namespace mln::util;
int looperCallbackNew(int fd, int, void* data) {
int buffer[1];
@@ -71,7 +71,7 @@ int looperCallbackReadEvent(int fd, int, void* data) {
} // namespace
namespace mbgl {
namespace mln {
namespace util {
// This is needed only for the RunLoop living on the main thread because of
@@ -89,7 +89,7 @@ public:
: loop(loop_) {}
void set(const Milliseconds& timeout) {
alarm.start(timeout, mbgl::Duration::zero(), [this]() { loop->wake(); });
alarm.start(timeout, mln::Duration::zero(), [this]() { loop->wake(); });
}
private:
@@ -136,11 +136,11 @@ RunLoop::Impl::~Impl() {
alarm.reset();
if (ALooper_removeFd(loop, fds[PIPE_OUT]) != 1) {
Log::Error(mbgl::Event::General, "Failed to remove file descriptor from Looper");
Log::Error(mln::Event::General, "Failed to remove file descriptor from Looper");
}
if (close(fds[PIPE_IN]) || close(fds[PIPE_OUT])) {
Log::Error(mbgl::Event::General, "Failed to close file descriptor.");
Log::Error(mln::Event::General, "Failed to close file descriptor.");
}
ALooper_release(loop);
@@ -315,4 +315,4 @@ void RunLoop::removeWatch(int fd) {
}
} // namespace util
} // namespace mbgl
} // namespace mln