Skip to content

Commit 76f6cfe

Browse files
author
Felix Faber
committed
Fix issue: Reducing scope of variable
1 parent c58a467 commit 76f6cfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/importproject.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ ImportProject::Type ImportProject::import(const std::string &filename, Settings
190190

191191
const std::vector<std::string> fileFilters =
192192
settings ? settings->fileFilters : std::vector<std::string>();
193-
std::vector<SharedItemsProject> sharedItemsProjects{};
194193

195194
if (endsWith(filename, ".json")) {
196195
if (importCompileCommands(fin)) {
@@ -204,6 +203,7 @@ ImportProject::Type ImportProject::import(const std::string &filename, Settings
204203
}
205204
} else if (endsWith(filename, ".vcxproj")) {
206205
std::map<std::string, std::string, cppcheck::stricmp> variables;
206+
std::vector<SharedItemsProject> sharedItemsProjects{};
207207
if (importVcxproj(filename, variables, emptyString, fileFilters, sharedItemsProjects)) {
208208
setRelativePaths(filename);
209209
return ImportProject::Type::VS_VCXPROJ;

0 commit comments

Comments
 (0)