[Tizen] Fix coverity issue (Use fontDescription after move) 24/291024/1
authorEunki, Hong <eunkiki.hong@samsung.com>
Thu, 6 Apr 2023 12:54:19 +0000 (21:54 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Thu, 6 Apr 2023 12:54:19 +0000 (21:54 +0900)
Change-Id: I2f0e19ad2880afd141da38dc2e033895b4b1da70
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/internal/text/text-abstraction/plugin/font-client-plugin-impl.cpp

index d690405..2c31868 100644 (file)
@@ -285,7 +285,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))
     {