From 159ad4e9c515de7246ab654cb3fb5559dca40613 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 26 Dec 2022 15:41:53 +0200 Subject: [PATCH] Initialize AndroidDevKit::supported_api_levels in the declaration --- source/androidtools.cpp | 1 - source/androidtools.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/source/androidtools.cpp b/source/androidtools.cpp index e0f2bb1..e086dd0 100644 --- a/source/androidtools.cpp +++ b/source/androidtools.cpp @@ -54,7 +54,6 @@ AndroidDevKit::AndroidDevKit(Builder &b, const string &type, const FS::Path &def return; builder.get_logger().log("files", "Traversing %s", platforms_dir.str()); - supported_api_levels = 0; for(const string &p: list_filtered(platforms_dir, "^android-[1-9][0-9]*$")) { unsigned api = lexical_cast(p.substr(8)); diff --git a/source/androidtools.h b/source/androidtools.h index 6410cdd..a88cdd3 100644 --- a/source/androidtools.h +++ b/source/androidtools.h @@ -15,7 +15,7 @@ protected: Msp::FS::Path root; /* Needs refactoring if API levels go over 63. At present rate this will take decades to occur. */ - uint64_t supported_api_levels; + uint64_t supported_api_levels = 0; AndroidDevKit(Builder &, const std::string &, const Msp::FS::Path & = Msp::FS::Path()); ~AndroidDevKit() { } -- 2.45.2