summaryrefslogtreecommitdiff
path: root/src/types
diff options
context:
space:
mode:
authorJellyBrick <shlee1503@naver.com>2018-05-26 17:46:51 +0900
committerJellyBrick <shlee1503@naver.com>2018-05-26 17:46:51 +0900
commitb79bd701400fb8bf8a845f8a24d78e82f182bb2f (patch)
treeed669eac33388c4b8f7e47f9037ddef3ad927d87 /src/types
parent987adf188619011acff2052301245e4df22a38d2 (diff)
Improve performance
Diffstat (limited to 'src/types')
-rw-r--r--src/types/InputFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types/InputFile.cpp b/src/types/InputFile.cpp
index 0f6cb86..4884488 100644
--- a/src/types/InputFile.cpp
+++ b/src/types/InputFile.cpp
@@ -14,7 +14,7 @@ using namespace std;
namespace TgBot {
InputFile::Ptr InputFile::fromFile(const string& filePath, const string& mimeType) {
- InputFile::Ptr result(new InputFile);
+ auto result(make_shared<InputFile>());
result->data = FileTools::read(filePath);
result->mimeType = mimeType;
result->fileName = StringTools::split(filePath, '/').back();