Apply suggestions from code review

Co-authored-by: Silent <CookiePLMonster@users.noreply.github.com>
1164-fix
melex750 2020-07-05 09:14:29 -04:00 committed by Mateusz Przybył
parent a46fee4d4e
commit 1b93963413
3 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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;
}

View File

@ -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