aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2014-01-26 20:42:05 +0000
committerVincent Richard <[email protected]>2014-01-26 20:42:05 +0000
commitebfd1ecfef970ec1b5a6ac3dadfa7cc0578ba49d (patch)
treedfa3db63f7dc9236e6b114ea59cf19ddd8363ff8
parentMerge pull request #66 from tholdawa/master (diff)
parentChange path::toString to be a const function (diff)
downloadvmime-ebfd1ecfef970ec1b5a6ac3dadfa7cc0578ba49d.tar.gz
vmime-ebfd1ecfef970ec1b5a6ac3dadfa7cc0578ba49d.zip
Merge pull request #67 from tholdawa/constFix
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: