mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Use auto in GetLevelRequired and GetSyntax.
This commit is contained in:
parent
31e3dfddf5
commit
42b46e794f
@ -329,13 +329,10 @@ public:
|
||||
/** Retrieves the level required to modify this mode.
|
||||
* @param adding Whether the mode is being added or removed.
|
||||
*/
|
||||
inline Rank GetLevelRequired(bool adding) const
|
||||
{
|
||||
return adding ? ranktoset : ranktounset;
|
||||
}
|
||||
inline auto GetLevelRequired(bool adding) const { return adding ? ranktoset : ranktounset; }
|
||||
|
||||
/** Retrieves the syntax of the parameter for this mode. */
|
||||
const std::string& GetSyntax() const { return syntax; }
|
||||
const auto& GetSyntax() const { return syntax; }
|
||||
|
||||
friend class ModeParser;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user