Skip to content

Commit 52f85c4

Browse files
Teemperorvgvassilev
authored andcommitted
Made foundSymbol in isFromRootCling const static
It doesn't change during runtime and that reflects better this property. Thanks to Axel for the hint.
1 parent b444f39 commit 52f85c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/metacling/src/TCling.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ static bool FileExists(const char *file)
11641164

11651165
static bool isFromRootCling() {
11661166
// rootcling also uses TCling for generating the dictionary ROOT files.
1167-
bool foundSymbol = dlsym(RTLD_DEFAULT, "usedToIdentifyRootClingByDlSym");
1167+
const static bool foundSymbol = dlsym(RTLD_DEFAULT, "usedToIdentifyRootClingByDlSym");
11681168
return foundSymbol;
11691169
}
11701170

0 commit comments

Comments
 (0)