aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortholdawa <[email protected]>2014-01-24 23:11:13 +0000
committertholdawa <[email protected]>2014-01-24 23:11:13 +0000
commite09be498be296e13cfc2231443f162e42abc92e4 (patch)
treedfa3db63f7dc9236e6b114ea59cf19ddd8363ff8
parentMerge remote-tracking branch 'upstream/master' (diff)
downloadvmime-e09be498be296e13cfc2231443f162e42abc92e4.tar.gz
vmime-e09be498be296e13cfc2231443f162e42abc92e4.zip
Change path::toString to be a const function
-rw-r--r--src/vmime/utility/path.cpp2
-rw-r--r--src/vmime/utility/path.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/vmime/utility/path.cpp b/src/vmime/utility/path.cpp
index aaa3192e..7ce028ff 100644
--- a/src/vmime/utility/path.cpp
+++ b/src/vmime/utility/path.cpp
@@ -292,7 +292,7 @@ path path::fromString(const string& str, const string& sep, const charset& cset)
}
-const string path::toString(const string& sep, const charset& cset)
+const string path::toString(const string& sep, const charset& cset) const
{
string str;
diff --git a/src/vmime/utility/path.hpp b/src/vmime/utility/path.hpp
index 02fd9ce6..310fa24b 100644
--- a/src/vmime/utility/path.hpp
+++ b/src/vmime/utility/path.hpp
@@ -175,7 +175,7 @@ public:
* vmime::charset::getLocalCharset() to use the default charset of your system)
* @return a string representing this path
*/
- const string toString(const string& sep, const charset& cset);
+ const string toString(const string& sep, const charset& cset) const;
private: