summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-09-22 08:51:16 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-09-22 08:51:16 +0000
commit720f758a8c6bece45e0d2d42e48bed67167f26c6 (patch)
treed04c4d157f19c3afe8a45d8f39be54aee43c8608 /src
parent491b9ec1230dd010466d698aba903fed5bcedee2 (diff)
downloadMana-720f758a8c6bece45e0d2d42e48bed67167f26c6.tar.gz
Mana-720f758a8c6bece45e0d2d42e48bed67167f26c6.tar.bz2
Mana-720f758a8c6bece45e0d2d42e48bed67167f26c6.tar.xz
Mana-720f758a8c6bece45e0d2d42e48bed67167f26c6.zip
Cleaned a bit.
Diffstat (limited to 'src')
-rw-r--r--src/channelmanager.cpp2
-rw-r--r--src/channelmanager.h5
-rw-r--r--src/gui/browserbox.cpp9
-rw-r--r--src/gui/linkhandler.h2
-rw-r--r--src/logindata.h6
-rw-r--r--src/utils/minmax.h2
6 files changed, 13 insertions, 13 deletions
diff --git a/src/channelmanager.cpp b/src/channelmanager.cpp
index 07dc2bbf..082581a1 100644
--- a/src/channelmanager.cpp
+++ b/src/channelmanager.cpp
@@ -55,7 +55,7 @@ Channel* ChannelManager::findById(int id)
return NULL;
}
-Channel* ChannelManager::findByName(std::string name)
+Channel *ChannelManager::findByName(std::string const &name)
{
Channel* channel;
if(name != "")
diff --git a/src/channelmanager.h b/src/channelmanager.h
index 3ad8f0b8..5e6b5ba1 100644
--- a/src/channelmanager.h
+++ b/src/channelmanager.h
@@ -24,6 +24,9 @@
#ifndef _TMW_CHANNELMANAGER_H
#define _TMW_CHANNELMANAGER_H
+#include <list>
+#include <string>
+
class Channel;
class ChannelManager
@@ -32,7 +35,7 @@ public:
ChannelManager();
~ChannelManager();
Channel* findById(int id);
- Channel* findByName(std::string name);
+ Channel *findByName(std::string const &name);
void addChannel(Channel *channel);
void removeChannel(Channel *channel);
private:
diff --git a/src/gui/browserbox.cpp b/src/gui/browserbox.cpp
index b69fdcbe..18853221 100644
--- a/src/gui/browserbox.cpp
+++ b/src/gui/browserbox.cpp
@@ -21,14 +21,9 @@
* $Id$
*/
-#include "browserbox.h"
-
#include <algorithm>
-#include <iostream>
-#include <guichan/graphics.hpp>
-#include <guichan/imagefont.hpp>
-#include <guichan/mouseinput.hpp>
+#include "browserbox.h"
#include "linkhandler.h"
#include "truetypefont.h"
@@ -261,7 +256,7 @@ BrowserBox::draw(gcn::Graphics *graphics)
}
}
- unsigned int i, j;
+ unsigned int i;
int x = 0, y = 0;
int wrappedLines = 0;
TrueTypeFont *font = static_cast<TrueTypeFont*>(getFont());
diff --git a/src/gui/linkhandler.h b/src/gui/linkhandler.h
index 33416ec7..3a32f825 100644
--- a/src/gui/linkhandler.h
+++ b/src/gui/linkhandler.h
@@ -24,6 +24,8 @@
#ifndef _TMW_LINK_HANDLER_H_
#define _TMW_LINK_HANDLER_H_
+#include <string>
+
/**
* A simple interface to windows that need to handle links from BrowserBox
* widget.
diff --git a/src/logindata.h b/src/logindata.h
index fbbbb573..ad6537b6 100644
--- a/src/logindata.h
+++ b/src/logindata.h
@@ -24,6 +24,8 @@
#ifndef _TMW_LOGINDATA_H
#define _TMW_LOGINDATA_H
+#include <string>
+
struct LoginData
{
std::string username;
@@ -32,10 +34,6 @@ struct LoginData
std::string email;
short port;
- int account_ID;
- int session_ID1;
- int session_ID2;
-
bool remember; /**< Whether to store the username and host. */
bool registerLogin; /**< Whether an account is being registered. */
diff --git a/src/utils/minmax.h b/src/utils/minmax.h
index ea6ad9e0..427c5da7 100644
--- a/src/utils/minmax.h
+++ b/src/utils/minmax.h
@@ -21,6 +21,8 @@
* $Id$
*/
+#include <cstdlib>
+
/**
* Returns a random numeric value that is larger than or equal min and smaller
* than max