diff --git a/src/Base/Interpreter.cpp b/src/Base/Interpreter.cpp index 8d51a31579..f59443682d 100644 --- a/src/Base/Interpreter.cpp +++ b/src/Base/Interpreter.cpp @@ -589,24 +589,24 @@ void InterpreterSingleton::runStringArg(const char * psCom,...) } -// Singelton: +// Singleton: -InterpreterSingleton * InterpreterSingleton::_pcSingelton = nullptr; +InterpreterSingleton * InterpreterSingleton::_pcSingleton = nullptr; InterpreterSingleton & InterpreterSingleton::Instance() { // not initialized! - if (!_pcSingelton) - _pcSingelton = new InterpreterSingleton(); - return *_pcSingelton; + if (!_pcSingleton) + _pcSingleton = new InterpreterSingleton(); + return *_pcSingleton; } void InterpreterSingleton::Destruct() { // not initialized or double destruct! - assert(_pcSingelton); - delete _pcSingelton; - _pcSingelton = nullptr; + assert(_pcSingleton); + delete _pcSingleton; + _pcSingleton = nullptr; } int InterpreterSingleton::runCommandLine(const char *prompt) diff --git a/src/Base/Interpreter.h b/src/Base/Interpreter.h index c36a3e6efa..19888ae83c 100644 --- a/src/Base/Interpreter.h +++ b/src/Base/Interpreter.h @@ -313,7 +313,7 @@ public: protected: // singleton - static InterpreterSingleton *_pcSingelton; + static InterpreterSingleton *_pcSingleton; private: std::string _cDebugFileName;