Author Topic: There is an error in the source code (envvars.cpp)  (Read 735 times)

Offline Chun Jiu

  • Multiple posting newcomer
  • *
  • Posts: 68
  • My Girlfriend
    • EasilyGCC
There is an error in the source code (envvars.cpp)
« on: June 18, 2020, 01:58:38 am »
src\plugins\contrib\envvars\envvars.cpp

On line 194:

Code: [Select]
  // 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.
I love my girlfriend like c++!    :-)

http://pan.baidu.com/s/1feNwU
easilygcc is a gmail's email.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12904
    • Travis build status
Re: There is an error in the source code (envvars.cpp)
« Reply #1 on: June 18, 2020, 02:11:21 am »
Fixed in svn. Thanks for reporting.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]