Apply suggestions from code review
Co-authored-by: Silent <CookiePLMonster@users.noreply.github.com>1164-fix
parent
a46fee4d4e
commit
1b93963413
|
@ -307,7 +307,7 @@ public:
|
|||
* \brief Get the list of user-defined methods in this class.
|
||||
* \return List of methods, can be empty.
|
||||
*/
|
||||
const std::list<CBotFunction*>& GetFunctions();
|
||||
const std::list<CBotFunction*>& GetFunctions() const;
|
||||
|
||||
/*!
|
||||
* \brief CompileDefItem
|
||||
|
|
|
@ -77,13 +77,13 @@ bool CBotFunction::IsPublic()
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool CBotFunction::IsProtected()
|
||||
bool CBotFunction::IsProtected() const
|
||||
{
|
||||
return m_bProtect;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool CBotFunction::IsPrivate()
|
||||
bool CBotFunction::IsPrivate() const
|
||||
{
|
||||
return m_bPrivate;
|
||||
}
|
||||
|
@ -1206,7 +1206,7 @@ std::string CBotFunction::GetParams()
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
const std::string& CBotFunction::GetClassName()
|
||||
const std::string& CBotFunction::GetClassName() const
|
||||
{
|
||||
return m_MasterClass;
|
||||
}
|
||||
|
|
|
@ -275,7 +275,7 @@ public:
|
|||
* \brief Get the name of the class for a method.
|
||||
* \return The name of a class or empty string if it's not a method.
|
||||
*/
|
||||
const std::string& GetClassName();
|
||||
const std::string& GetClassName() const;
|
||||
|
||||
/*!
|
||||
* \brief IsPublic
|
||||
|
@ -287,13 +287,13 @@ public:
|
|||
* \brief Check if a method is protected.
|
||||
* \return true if a method was compiled with "protected" keyword.
|
||||
*/
|
||||
bool IsProtected();
|
||||
bool IsProtected() const;
|
||||
|
||||
/*!
|
||||
* \brief Check if a method is private.
|
||||
* \return true if a method was compiled with "private" keyword.
|
||||
*/
|
||||
bool IsPrivate();
|
||||
bool IsPrivate() const;
|
||||
|
||||
/*!
|
||||
* \brief IsExtern
|
||||
|
|
Loading…
Reference in New Issue