cmake_automoc_parser: Fix issue found by CodeChecker

Fix exp63-cpp by assigning fresh values to mocEntries and mocIncludes to
get them out of the moved-from state.

Change-Id: I9ad36c0ebd922bc6a0c9e61c15be02cb987c1edb
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
bb10
Joerg Bornemann 2022-03-14 12:37:46 +01:00
parent 0aaada0ddc
commit 7d00e72677
1 changed files with 2 additions and 0 deletions

View File

@ -168,6 +168,8 @@ static bool readParseCache(ParseCacheMap &entries, const QString &parseCacheFile
entries.insert(source,
ParseCacheEntry { std::move(mocEntries), std::move(mocIncludes) });
source.clear();
mocEntries = {};
mocIncludes = {};
mmc_key_found = false;
}
source = line;