summaryrefslogtreecommitdiff
path: root/tools/lldb-mi/MICmdFactory.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lldb-mi/MICmdFactory.h')
-rw-r--r--tools/lldb-mi/MICmdFactory.h19
1 files changed, 8 insertions, 11 deletions
diff --git a/tools/lldb-mi/MICmdFactory.h b/tools/lldb-mi/MICmdFactory.h
index 9a5e07690a34e..99f6f0cb2396a 100644
--- a/tools/lldb-mi/MICmdFactory.h
+++ b/tools/lldb-mi/MICmdFactory.h
@@ -25,9 +25,6 @@ struct SMICmdData;
// MI application understands to interpret. Creates commands objects.
// The Command Factory is carried out in the main thread.
// A singleton class.
-// Gotchas: None.
-// Authors: Illya Rudkin 19/02/2014.
-// Changes: None.
//--
class CMICmdFactory : public CMICmnBase, public MI::ISingleton<CMICmdFactory>
{
@@ -35,7 +32,7 @@ class CMICmdFactory : public CMICmnBase, public MI::ISingleton<CMICmdFactory>
// Typedefs:
public:
- typedef CMICmdBase *(*CmdCreatorFnPtr)(void);
+ typedef CMICmdBase *(*CmdCreatorFnPtr)();
// Class:
public:
@@ -45,25 +42,25 @@ class CMICmdFactory : public CMICmnBase, public MI::ISingleton<CMICmdFactory>
class ICmd
{
public:
- virtual const CMIUtilString &GetMiCmd(void) const = 0;
- virtual CmdCreatorFnPtr GetCmdCreatorFn(void) const = 0;
+ virtual const CMIUtilString &GetMiCmd() const = 0;
+ virtual CmdCreatorFnPtr GetCmdCreatorFn() const = 0;
// virtual CMICmdBase * CreateSelf( void ) = 0; // Not possible as require a static creator
// function in the command class, here for awareness
- /* dtor */ virtual ~ICmd(void){};
+ /* dtor */ virtual ~ICmd(){}
};
// Methods:
public:
- bool Initialize(void) override;
- bool Shutdown(void) override;
+ bool Initialize() override;
+ bool Shutdown() override;
bool CmdRegister(const CMIUtilString &vMiCmd, CmdCreatorFnPtr vCmdCreateFn);
bool CmdCreate(const CMIUtilString &vMiCmd, const SMICmdData &vCmdData, CMICmdBase *&vpNewCmd);
bool CmdExist(const CMIUtilString &vMiCmd) const;
// Methods:
private:
- /* ctor */ CMICmdFactory(void);
+ /* ctor */ CMICmdFactory();
/* ctor */ CMICmdFactory(const CMICmdFactory &);
void operator=(const CMICmdFactory &);
@@ -73,7 +70,7 @@ class CMICmdFactory : public CMICmnBase, public MI::ISingleton<CMICmdFactory>
// Overridden:
private:
// From CMICmnBase
- /* dtor */ ~CMICmdFactory(void) override;
+ /* dtor */ ~CMICmdFactory() override;
// Typedefs:
private: