aboutsummaryrefslogtreecommitdiffstats
path: root/src/utility
diff options
context:
space:
mode:
Diffstat (limited to 'src/utility')
-rw-r--r--src/utility/encoder/encoderFactory.cpp4
-rw-r--r--src/utility/path.cpp10
-rw-r--r--src/utility/random.cpp6
3 files changed, 10 insertions, 10 deletions
diff --git a/src/utility/encoder/encoderFactory.cpp b/src/utility/encoder/encoderFactory.cpp
index 1798ffaf..3b86f682 100644
--- a/src/utility/encoder/encoderFactory.cpp
+++ b/src/utility/encoder/encoderFactory.cpp
@@ -89,13 +89,13 @@ const ref <const encoderFactory::registeredEncoder> encoderFactory::getEncoderBy
}
-int encoderFactory::getEncoderCount() const
+size_t encoderFactory::getEncoderCount() const
{
return (m_encoders.size());
}
-const ref <const encoderFactory::registeredEncoder> encoderFactory::getEncoderAt(const int pos) const
+const ref <const encoderFactory::registeredEncoder> encoderFactory::getEncoderAt(const size_t pos) const
{
return (m_encoders[pos]);
}
diff --git a/src/utility/path.cpp b/src/utility/path.cpp
index 9e314e6a..2702f48c 100644
--- a/src/utility/path.cpp
+++ b/src/utility/path.cpp
@@ -171,19 +171,19 @@ path::component& path::getLastComponent()
}
-int path::getSize() const
+size_t path::getSize() const
{
return (m_list.size());
}
-const path::component& path::operator[](const int x) const
+const path::component& path::operator[](const size_t x) const
{
return (m_list[x]);
}
-path::component& path::operator[](const int x)
+path::component& path::operator[](const size_t x)
{
return (m_list[x]);
}
@@ -250,13 +250,13 @@ void path::appendComponent(const path::component& c)
}
-const path::component& path::getComponentAt(const int pos) const
+const path::component& path::getComponentAt(const size_t pos) const
{
return (m_list[pos]);
}
-path::component& path::getComponentAt(const int pos)
+path::component& path::getComponentAt(const size_t pos)
{
return (m_list[pos]);
}
diff --git a/src/utility/random.cpp b/src/utility/random.cpp
index d12989b8..20719ad6 100644
--- a/src/utility/random.cpp
+++ b/src/utility/random.cpp
@@ -56,13 +56,13 @@ unsigned int random::getProcess()
}
-const string random::getString(const int length, const string& randomChars)
+const string random::getString(const string::size_type length, const string& randomChars)
{
string res;
res.resize(length);
- const unsigned int x = randomChars.length();
- int c = 0;
+ const unsigned int x = static_cast <unsigned int>(randomChars.length());
+ string::size_type c = 0;
while (c < length)
{