summaryrefslogtreecommitdiff
path: root/include/tgbot/net/HttpReqArg.h
diff options
context:
space:
mode:
authorOleg Morozenkov <omorozenkov@gmail.com>2015-09-15 18:18:49 +0300
committerOleg Morozenkov <omorozenkov@gmail.com>2015-09-15 18:18:49 +0300
commit6a3c8387da208ac2ffa4757dfafe1600a693b24f (patch)
treea8cfbfd46643784ede5ddfc0ce6dcd5f39d533d2 /include/tgbot/net/HttpReqArg.h
parent370df9853702bf9666b8dfa2e4254b9e236b2789 (diff)
Fix formatting + some minor improvements
Diffstat (limited to 'include/tgbot/net/HttpReqArg.h')
-rw-r--r--include/tgbot/net/HttpReqArg.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/tgbot/net/HttpReqArg.h b/include/tgbot/net/HttpReqArg.h
index 683c2b0..f0e4492 100644
--- a/include/tgbot/net/HttpReqArg.h
+++ b/include/tgbot/net/HttpReqArg.h
@@ -37,8 +37,8 @@ class HttpReqArg {
public:
template<typename T>
- HttpReqArg(const std::string& name, const T& value, bool isFile = false, const std::string& mimeType = "text/plain", std::string fileName = "") :
- name(name), value(boost::lexical_cast<std::string>(value)), isFile(isFile), mimeType(mimeType), fileName(fileName)
+ HttpReqArg(const std::string& name, const T& value, bool isFile = false, const std::string& mimeType = "text/plain", const std::string& fileName = "") :
+ name(name), value(boost::lexical_cast<std::string>(value)), isFile(isFile), mimeType(mimeType), fileName(fileName)
{
}
@@ -62,10 +62,10 @@ public:
*/
std::string mimeType = "text/plain";
- /**
- * Should be set if an argument value hold some file contents
- */
- std::string fileName;
+ /**
+ * Should be set if an argument value hold some file contents
+ */
+ std::string fileName;
};
}