]> git.tdb.fi Git - builder.git/commitdiff
Initialize AndroidDevKit::supported_api_levels in the declaration
authorMikko Rasa <tdb@tdb.fi>
Mon, 26 Dec 2022 13:41:53 +0000 (15:41 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 26 Dec 2022 19:12:50 +0000 (21:12 +0200)
source/androidtools.cpp
source/androidtools.h

index e0f2bb1087aee7989bc04f6640018f10a2527612..e086dd0fdfd08b7e81cf19a52231439550db613d 100644 (file)
@@ -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<unsigned>(p.substr(8));
index 6410cddff4016f66371a98001b1fea627eb39c3d..a88cdd36fbd2b710b3b9cf1c07abbbe49b920605 100644 (file)
@@ -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() { }