From 344659fa6b27438380b9ed8e3083259f10fee556 Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Thu, 22 Jun 2023 00:22:43 +0200 Subject: [PATCH] Fixed kml.kmz for bookmarks sharing Signed-off-by: Alexander Borsuk --- map/bookmark_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/map/bookmark_manager.cpp b/map/bookmark_manager.cpp index 945fcf497f..a07fd33aa7 100644 --- a/map/bookmark_manager.cpp +++ b/map/bookmark_manager.cpp @@ -81,7 +81,7 @@ BookmarkManager::SharingResult GetFileForSharing(BookmarkManager::KMLDataCollect if (fileName.empty()) fileName = base::GetNameFromFullPathWithoutExt(kmlToShare.first); - auto const filePath = base::JoinPath(GetPlatform().TmpDir(), fileName.append(kKmlExtension)); + auto const filePath = base::JoinPath(GetPlatform().TmpDir(), fileName + std::string{kKmlExtension}); SCOPE_GUARD(fileGuard, std::bind(&base::DeleteFileX, filePath)); auto const categoryId = kmlToShare.second->m_categoryData.m_id; @@ -92,7 +92,7 @@ BookmarkManager::SharingResult GetFileForSharing(BookmarkManager::KMLDataCollect "Bookmarks file does not exist."); } - auto const tmpFilePath = base::JoinPath(GetPlatform().TmpDir(), fileName.append(kKmzExtension)); + auto const tmpFilePath = base::JoinPath(GetPlatform().TmpDir(), fileName + std::string{kKmzExtension}); if (!CreateZipFromPathDeflatedAndDefaultCompression(filePath, tmpFilePath)) { return BookmarkManager::SharingResult(categoryId, BookmarkManager::SharingResult::Code::ArchiveError,