diff options
author | JellyBrick <shlee1503@naver.com> | 2018-05-26 17:46:51 +0900 |
---|---|---|
committer | JellyBrick <shlee1503@naver.com> | 2018-05-26 17:46:51 +0900 |
commit | b79bd701400fb8bf8a845f8a24d78e82f182bb2f (patch) | |
tree | ed669eac33388c4b8f7e47f9037ddef3ad927d87 /src/types | |
parent | 987adf188619011acff2052301245e4df22a38d2 (diff) |
Improve performance
Diffstat (limited to 'src/types')
-rw-r--r-- | src/types/InputFile.cpp | 2 |
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(); |