1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 17:04:47 +02:00

Fix the location of &* on types.

This commit is contained in:
Sadie Powell
2026-03-26 16:01:05 +00:00
parent 5355b53008
commit eaa24d3b0a
14 changed files with 18 additions and 19 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ namespace Language
/** Sets the locale to the specified language.
* @param lang The language to translate to.
*/
extern CoreExport void SetLocale(const char* lang);
extern CoreExport void SetLocale(const char *lang);
/** Sets the locale back to the default. */
extern CoreExport void ResetLocale();
+2 -2
View File
@@ -46,7 +46,7 @@ public:
/** Retrieves the size of the messages queue for the specified user.
* @param nc The account to count queued messages for.
*/
inline size_t CountQueue(NickCore* nc) const
inline size_t CountQueue(NickCore *nc) const
{
auto *q = GetQueue(nc);
return q ? q->size() : 0;
@@ -55,7 +55,7 @@ public:
/** Retrieves the messages queue for the specified user.
* @param nc The account to retrieve queued messages for.
*/
virtual const std::vector<Anope::string> *GetQueue(NickCore* nc) const = 0;
virtual const std::vector<Anope::string> *GetQueue(NickCore *nc) const = 0;
/** Queues a message to be sent later.
* @param nc The account to queue the message for.
+1 -1
View File
@@ -183,7 +183,7 @@ private:
size_t minparams;
protected:
Event(Module *o, const Anope::string& e, size_t mp = 0)
Event(Module *o, const Anope::string &e, size_t mp = 0)
: Service(o, RPC_EVENT, e)
, minparams(mp)
{
+1 -1
View File
@@ -307,7 +307,7 @@ public:
*/
virtual void SendOper(User *u);
virtual void SendClearModes(const MessageSource &user, Channel *c, User* u, const Anope::string &mode) { }
virtual void SendClearModes(const MessageSource &user, Channel *c, User *u, const Anope::string &mode) { }
virtual bool IsNickValid(const Anope::string &);
virtual bool IsChannelValid(const Anope::string &);
+2 -2
View File
@@ -152,7 +152,7 @@ public:
* @param def The default value if none is set.
*/
template <typename T = Anope::string>
T Load(const Anope::string& key, T def = T())
T Load(const Anope::string &key, T def = T())
{
T out;
if (!TryLoad(key, out))
@@ -186,7 +186,7 @@ public:
* @param out The location to store the retrieved value.
*/
template <typename T = Anope::string>
bool TryLoad(const Anope::string& key, T &out)
bool TryLoad(const Anope::string &key, T &out)
{
Anope::string out_str;
if (!LoadInternal(key, out_str))
+2 -2
View File
@@ -151,14 +151,14 @@ public:
const auto &GetServiceType() const { return type; }
/** Invalidates the reference and changes the name of the referenced service. */
void SetServiceName(const Anope::string& newname)
void SetServiceName(const Anope::string &newname)
{
this->invalid = true;
this->name = newname;
}
/** Invalidates the reference and changes the type of the referenced service. */
void SetServiceType(const Anope::string& newtype)
void SetServiceType(const Anope::string &newtype)
{
this->invalid = true;
this->type = newtype;