1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 10:56:38 +02:00

some code cleanup in misc.cpp and fixed a small typo

This commit is contained in:
DukePyrolator
2010-08-01 18:48:40 +02:00
parent cb3a18e524
commit 2f6c0e435c
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -176,7 +176,7 @@ class CoreExport User : public Extensible
void Logout();
/** Get the account the user is logged in using
* @reurn The account or NULL
* @return The account or NULL
*/
virtual NickCore *Account();
virtual const NickCore *Account() const;
+2 -2
View File
@@ -1308,9 +1308,9 @@ Anope::string Anope::Hex(const Anope::string &data)
{
const char hextable[] = "0123456789abcdef";
int l = data.length();
size_t l = data.length();
Anope::string rv;
for(int i=0; i < l; i++)
for (size_t i = 0; i < l; ++i)
{
unsigned char c = data[i];
rv += hextable[c >> 4];