Skip to content

Commit c8900f8

Browse files
committed
fix
1 parent b6d554f commit c8900f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

simplecpp.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3273,14 +3273,14 @@ static std::string getFileIdPath(const std::map<std::string, simplecpp::TokenLis
32733273
}
32743274

32753275
if (!systemheader) {
3276-
const std::string absoluteFilename = getRelativeFileName(sourcefile, header, true);
3277-
const std::string match = findPathInMapBothRelativeAndAbsolute(filedata, absoluteFilename);
3276+
const std::string relativeFilename = getRelativeFileName(sourcefile, header, true);
3277+
const std::string match = findPathInMapBothRelativeAndAbsolute(filedata, relativeFilename);
32783278
if (!match.empty()) {
32793279
return match;
32803280
}
32813281
// if the file exists but hasn't been loaded yet then we need to stop searching here or we could get a false match
32823282
std::ifstream f;
3283-
openHeader(f, relativeOrAbsoluteFilename);
3283+
openHeader(f, relativeFilename);
32843284
if (f.is_open()) {
32853285
f.close();
32863286
return "";

0 commit comments

Comments
 (0)