Skip to content

Commit

Permalink
refactor(core): rename variable in DLLoadedr
Browse files Browse the repository at this point in the history
  • Loading branch information
Yann-Masson committed Mar 28, 2024
1 parent 035c8f2 commit b419ed3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/utils/DLLoader/DLLoader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ class DLLoader {
T loadSymbol(std::string name) {
if (!this->_handle)
throw DLLoaderExeption("Library not loaded");
T function = reinterpret_cast<T>(dlsym(this->_handle, name.c_str()));
if (!function)
T symbol = reinterpret_cast<T>(dlsym(this->_handle, name.c_str()));
if (!symbol)
this->_throwError();
return function;
return symbol;
}

class DLLoaderExeption : public std::exception {
Expand Down

0 comments on commit b419ed3

Please sign in to comment.