mirror of
https://github.com/maxDcb/C2Core
synced 2026-06-08 15:48:01 +00:00
String detection reduction
This commit is contained in:
@@ -545,9 +545,10 @@ class ModuleCmd
|
||||
{
|
||||
|
||||
public:
|
||||
ModuleCmd(const std::string& name)
|
||||
ModuleCmd(const std::string& name, unsigned long hash=0)
|
||||
{
|
||||
m_name=name;
|
||||
m_hash=hash;
|
||||
}
|
||||
|
||||
~ModuleCmd()
|
||||
@@ -560,6 +561,11 @@ public:
|
||||
return m_name;
|
||||
}
|
||||
|
||||
unsigned long getHash()
|
||||
{
|
||||
return m_hash;
|
||||
}
|
||||
|
||||
virtual std::string getInfo() = 0;
|
||||
|
||||
// if an error ocurre:
|
||||
@@ -570,6 +576,7 @@ public:
|
||||
|
||||
protected:
|
||||
std::string m_name;
|
||||
unsigned long m_hash;
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user