summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Morozenkov <reo7sp@users.noreply.github.com>2017-01-26 00:34:11 +0300
committerOleg Morozenkov <reo7sp@users.noreply.github.com>2017-01-26 00:40:12 +0300
commitbf0d39d4aae287306daa1ed13182926a373e3e41 (patch)
treec2aaa035a3f114d84b49994b168b20af8ffc6520
parent85e0e991973594fb458410876a1cc09c5971b918 (diff)
Fix warning: nonnull argument 'value' compared to NULL
-rw-r--r--include/tgbot/TgTypeParser.h3
-rw-r--r--include/tgbot/tools/FileTools.h2
-rw-r--r--src/tools/FileTools.cpp2
3 files changed, 2 insertions, 5 deletions
diff --git a/include/tgbot/TgTypeParser.h b/include/tgbot/TgTypeParser.h
index 89c6dec..e593d6a 100644
--- a/include/tgbot/TgTypeParser.h
+++ b/include/tgbot/TgTypeParser.h
@@ -361,9 +361,6 @@ private:
}
void appendToJson(std::string& json, const std::string& varName, const bool& value) const {
- if (value == 0) {
- return;
- }
json += '"';
json += varName;
json += "\":";
diff --git a/include/tgbot/tools/FileTools.h b/include/tgbot/tools/FileTools.h
index 6071852..7329a8e 100644
--- a/include/tgbot/tools/FileTools.h
+++ b/include/tgbot/tools/FileTools.h
@@ -1,5 +1,5 @@
//
-// Created by Oleg on 25.01.17.
+// Created by Oleg Morozenkov on 25.01.17.
//
#ifndef TGBOT_FILETOOLS_H
diff --git a/src/tools/FileTools.cpp b/src/tools/FileTools.cpp
index 1522a9d..e92e96d 100644
--- a/src/tools/FileTools.cpp
+++ b/src/tools/FileTools.cpp
@@ -1,5 +1,5 @@
//
-// Created by Oleg on 25.01.17.
+// Created by Oleg Morozenkov on 25.01.17.
//
#include "tgbot/tools/FileTools.h"