aboutsummaryrefslogtreecommitdiffstats
path: root/src/utility/path.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2012-12-12 15:35:55 +0000
committerVincent Richard <[email protected]>2012-12-12 15:35:55 +0000
commit3a5621c2aa3931be608508d4fadc42c2a09cb251 (patch)
treea39a344cbacdc9524122536ecbf8866e225e8230 /src/utility/path.cpp
parentDo not re-encode data if it is already encoded (thanks to Mehmet Bozkurt). (diff)
downloadvmime-3a5621c2aa3931be608508d4fadc42c2a09cb251.tar.gz
vmime-3a5621c2aa3931be608508d4fadc42c2a09cb251.zip
Trivial 64-bit warning fixes.
Diffstat (limited to 'src/utility/path.cpp')
-rw-r--r--src/utility/path.cpp10
1 files changed, 5 insertions, 5 deletions
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]);
}