summaryrefslogtreecommitdiff
path: root/src/types
diff options
context:
space:
mode:
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();