Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Chun Jiu on June 18, 2020, 01:58:38 am

Title: There is an error in the source code (envvars.cpp)
Post by: Chun Jiu on June 18, 2020, 01:58:38 am
src\plugins\contrib\envvars\envvars.cpp

On line 194:

Code
  // Register scripting
  Manager::Get()->GetScriptingManager(); // make sure the VM is initialised
  if (SquirrelVM::GetVMPtr())
  {
    SqPlus::RegisterGlobal(&nsEnvVars::GetEnvvarSetNames,   "EnvvarGetEnvvarSetNames"  );
    SqPlus::RegisterGlobal(&nsEnvVars::GetEnvvarSetNames,   "EnvvarGetActiveSetName"   );
                                       ^^^^^^^^^^^^^^^^^
    SqPlus::RegisterGlobal(&nsEnvVars::GetEnvvarsBySetPath, "EnvVarGetEnvvarsBySetPath");

I think it should be GetActiveSetName.
Title: Re: There is an error in the source code (envvars.cpp)
Post by: oBFusCATed on June 18, 2020, 02:11:21 am
Fixed in svn. Thanks for reporting.