Fix coverity issue (Use fontDescription after move) 23/291023/4
authorEunki, Hong <eunkiki.hong@samsung.com>
Thu, 6 Apr 2023 12:32:22 +0000 (21:32 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Fri, 7 Apr 2023 05:25:08 +0000 (14:25 +0900)
Change-Id: Iee3e63bb50a8e41ba71cdfcca4f78bf4f4452f6b
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/internal/text/text-abstraction/plugin/font-client-plugin-impl.cpp

index f58304c..1dbf322 100644 (file)
@@ -284,7 +284,8 @@ void FontClient::Plugin::FontPreCache(const FontFamilyList& fallbackFamilyList,
 
     if(!mCacheHandler->FindFallbackFontList(fontDescription, fontList, characterSetList))
     {
-      mCacheHandler->CacheFallbackFontList(std::move(fontDescription), fontList, characterSetList);
+      FontDescription copiedFontDescription = fontDescription;
+      mCacheHandler->CacheFallbackFontList(std::move(copiedFontDescription), fontList, characterSetList);
     }
     if(!mCacheHandler->FindValidatedFont(fontDescription, fontDescriptionId))
     {