1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 17:24:49 +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;
+1 -2
View File
@@ -397,11 +397,10 @@ public:
return EVENT_CONTINUE;
}
void OnUplinkSync(Server* s) override
void OnUplinkSync(Server *s) override
{
// We need to do this when the uplink is synced as we may not know if
// the mode exists before then on some IRCds (e.g. InspIRCd).
if (!persist)
return;
+1 -1
View File
@@ -440,7 +440,7 @@ private:
ListFormatter &list;
ChannelInfo *ci;
bool show_all;
unsigned& foreign;
unsigned &foreign;
public:
AccessListCallback(ListFormatter &_list, ChannelInfo *_ci, const Anope::string &numlist, bool _show_all, unsigned &_foreign)
+1 -1
View File
@@ -253,7 +253,7 @@ private:
}
}
void ApplyFlags(Extensible *ext, Anope::string &flags, char flag, const char* extname, bool extend = true)
void ApplyFlags(Extensible *ext, Anope::string &flags, char flag, const char *extname, bool extend = true)
{
auto pos = flags.find(flag);
auto has_flag = (pos != Anope::string::npos);
+1 -1
View File
@@ -230,7 +230,7 @@ public:
throw ModuleException("A compiler with C++20 support is required by this module");
#else
// Build the zone list.
const auto& tzdb = std::chrono::get_tzdb();
const auto &tzdb = std::chrono::get_tzdb();
for (const auto &tz : tzdb.zones)
timezones.emplace_back(tz.name());
for (const auto &tz : tzdb.links)
+1 -1
View File
@@ -57,7 +57,7 @@ class CommandOSStats final
private:
ServiceReference<XLineManager> akills, snlines, sqlines;
static void ReportXLineStats(CommandSource& source, XLineManager* xlm, const char* type, const char* config)
static void ReportXLineStats(CommandSource &source, XLineManager *xlm, const char *type, const char *config)
{
source.Reply(_("Current number of %ss: \002%zu\002"), type, xlm->GetCount());
+1 -1
View File
@@ -496,7 +496,7 @@ namespace UnrealExtBan
Anope::string xbname;
public:
Base(const Anope::string &mname, const Anope::string& uname, char uchar)
Base(const Anope::string &mname, const Anope::string &uname, char uchar)
: ChannelModeVirtual<ChannelModeList>(mname, "BAN")
, xbchar(uchar)
, xbname(uname)
+1 -1
View File
@@ -232,7 +232,7 @@ void Command::OnSyntaxError(CommandSource &source, const Anope::string &subcomma
namespace
{
void HandleUnknownCommand(CommandSource& source, const Anope::string &message)
void HandleUnknownCommand(CommandSource &source, const Anope::string &message)
{
// Try to find a similar command.
auto distance = Config->GetBlock("options").Get<size_t>("didyoumeandifference", "4");
+2 -2
View File
@@ -272,7 +272,7 @@ void InfoFormatter::SendTo(CommandSource &source)
std::sort(this->options.begin(), this->options.end());
auto &optstr = (*this)[_("Options")];
for (const auto& option : this->options)
for (const auto &option : this->options)
{
if (!optstr.empty())
optstr += ", ";
@@ -436,7 +436,7 @@ bool LineWrapper::GetLine(Anope::string &out)
auto toggle_formatting = [this, &uncertain_formatting](const Anope::string &fmt)
{
auto it = std::find_if(formatting.begin(), formatting.end(), [&fmt](const auto& f) {
auto it = std::find_if(formatting.begin(), formatting.end(), [&fmt](const auto &f) {
return f[0] == fmt[0];
});
if (it == formatting.end())