summaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2013-01-09 13:23:43 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2013-01-09 13:23:43 +0100
commit16074a7c2c8197a061281a6880ddbc3967d8ea0c (patch)
treebd0cc650944aaeb38e87d43b94e43c1ab94bb2c7 /src/utils
parent562b403a66a6a96d883620b27455564d50e3d49b (diff)
downloadmanaserv-16074a7c2c8197a061281a6880ddbc3967d8ea0c.tar.gz
manaserv-16074a7c2c8197a061281a6880ddbc3967d8ea0c.tar.xz
manaserv-16074a7c2c8197a061281a6880ddbc3967d8ea0c.zip
Replaced 'unsigned int' with 'unsigned'
Same thing, but shorter.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/string.cpp2
-rw-r--r--src/utils/stringfilter.cpp4
-rw-r--r--src/utils/timer.cpp4
-rw-r--r--src/utils/timer.h6
4 files changed, 8 insertions, 8 deletions
diff --git a/src/utils/string.cpp b/src/utils/string.cpp
index b74b91e..fdc5eb5 100644
--- a/src/utils/string.cpp
+++ b/src/utils/string.cpp
@@ -40,7 +40,7 @@ std::string toLower(std::string s)
bool isNumeric(const std::string &s)
{
- for (unsigned int i = 0; i < s.size(); ++i)
+ for (unsigned i = 0; i < s.size(); ++i)
{
if (!isdigit(s[i]))
{
diff --git a/src/utils/stringfilter.cpp b/src/utils/stringfilter.cpp
index b48d267..e369609 100644
--- a/src/utils/stringfilter.cpp
+++ b/src/utils/stringfilter.cpp
@@ -100,8 +100,8 @@ bool StringFilter::filterContent(const std::string &text) const
bool StringFilter::isEmailValid(const std::string &email) const
{
- unsigned int min = Configuration::getValue("account_minEmailLength", 7);
- unsigned int max = Configuration::getValue("account_maxEmailLength", 128);
+ unsigned min = Configuration::getValue("account_minEmailLength", 7);
+ unsigned max = Configuration::getValue("account_maxEmailLength", 128);
// Testing email validity
if (email.length() < min || email.length() > max)
diff --git a/src/utils/timer.cpp b/src/utils/timer.cpp
index aea10ad..c01a413 100644
--- a/src/utils/timer.cpp
+++ b/src/utils/timer.cpp
@@ -43,7 +43,7 @@ static uint64_t getTimeInMillisec()
namespace utils
{
-Timer::Timer(unsigned int ms)
+Timer::Timer(unsigned ms)
{
active = false;
interval = ms;
@@ -97,7 +97,7 @@ void Timer::stop()
active = false;
}
-void Timer::changeInterval(unsigned int newinterval)
+void Timer::changeInterval(unsigned newinterval)
{
interval = newinterval;
}
diff --git a/src/utils/timer.h b/src/utils/timer.h
index 2c6ca89..2fb9e7b 100644
--- a/src/utils/timer.h
+++ b/src/utils/timer.h
@@ -42,7 +42,7 @@ class Timer
*
* @param ms the interval in milliseconds
*/
- Timer(unsigned int ms);
+ Timer(unsigned ms);
/**
* Returns the number of elapsed ticks since last call.
@@ -67,13 +67,13 @@ class Timer
/**
* Changes the interval between two pulses.
*/
- void changeInterval(unsigned int newinterval);
+ void changeInterval(unsigned newinterval);
private:
/**
* Interval between two pulses.
*/
- unsigned int interval;
+ unsigned interval;
/**
* The time the last pulse occured.