From: Mikko Rasa Date: Mon, 26 Dec 2022 13:41:53 +0000 (+0200) Subject: Initialize AndroidDevKit::supported_api_levels in the declaration X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=159ad4e9c515de7246ab654cb3fb5559dca40613;p=builder.git Initialize AndroidDevKit::supported_api_levels in the declaration --- 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() { }