summaryrefslogtreecommitdiff
path: root/include/tgbot/net/HttpReqArg.h
diff options
context:
space:
mode:
authorOleg Morozenkov <omorozenkov@gmail.com>2015-08-11 22:13:23 +0300
committerOleg Morozenkov <omorozenkov@gmail.com>2015-08-11 22:13:23 +0300
commit376b88ec09ef8cf71dd823467406c58204485fcc (patch)
tree9ca599b854d18006c65b26003ce7dbdd416fdf18 /include/tgbot/net/HttpReqArg.h
parentd7fbf7149d0e0c1c30972dab68d510ef6ac377dd (diff)
Fixed compiler's errors in TgTypeParser + fixed indentation + some other fixes
Diffstat (limited to 'include/tgbot/net/HttpReqArg.h')
-rw-r--r--include/tgbot/net/HttpReqArg.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/include/tgbot/net/HttpReqArg.h b/include/tgbot/net/HttpReqArg.h
index d70e8b5..65f4f52 100644
--- a/include/tgbot/net/HttpReqArg.h
+++ b/include/tgbot/net/HttpReqArg.h
@@ -36,31 +36,31 @@ namespace TgBot {
class HttpReqArg {
public:
- template<typename T>
- HttpReqArg(const std::string& name, const T& value, bool isFile = false, const std::string& mimeType = "text/plain") :
- name(name), value(boost::lexical_cast<std::string>(value)), isFile(isFile), mimeType(mimeType)
- {
- }
+ template<typename T>
+ HttpReqArg(const std::string& name, const T& value, bool isFile = false, const std::string& mimeType = "text/plain") :
+ name(name), value(boost::lexical_cast<std::string>(value)), isFile(isFile), mimeType(mimeType)
+ {
+ }
- /**
- * Name of an argument.
- */
- std::string name;
+ /**
+ * Name of an argument.
+ */
+ std::string name;
- /**
- * Value of an argument.
- */
- std::string value;
+ /**
+ * Value of an argument.
+ */
+ std::string value;
- /**
- * Should be true if an argument value hold some file contents
- */
- bool isFile = false;
+ /**
+ * Should be true if an argument value hold some file contents
+ */
+ bool isFile = false;
- /**
- * Mime type of an argument value. This field makes sense only if isFile is true.
- */
- std::string mimeType = "text/plain";
+ /**
+ * Mime type of an argument value. This field makes sense only if isFile is true.
+ */
+ std::string mimeType = "text/plain";
};
}