From b79bd701400fb8bf8a845f8a24d78e82f182bb2f Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Sat, 26 May 2018 17:46:51 +0900 Subject: Improve performance --- src/types/InputFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/types') 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()); result->data = FileTools::read(filePath); result->mimeType = mimeType; result->fileName = StringTools::split(filePath, '/').back(); -- cgit v1.2.3