diff --git a/src/libs/tgf/module.cpp b/src/libs/tgf/module.cpp index 162b4e3f8..3ebb9d048 100644 --- a/src/libs/tgf/module.cpp +++ b/src/libs/tgf/module.cpp @@ -194,7 +194,7 @@ std::vector GfModule::loadFromDir(const std::string& strDirPath, continue; // Try and load. - GfModule* pModule = GfModule::load(ossShLibPath.str().c_str()); + GfModule* pModule = GfModule::load(ossShLibPath.str()); if (pModule) vecModules.push_back(pModule); else