diff options
author | Antti Määttä <antti.maatta@qt.io> | 2020-10-02 10:23:35 +0300 |
---|---|---|
committer | Antti Määttä <antti.maatta@qt.io> | 2020-10-06 11:37:04 +0300 |
commit | c8e20266de6ef817ab60d9393d94ed6b6713d28d (patch) | |
tree | b332b6402cf39721b135da19441eebf753f4ccca | |
parent | b123b5ebb065b23f6922d60864b403d2aeede172 (diff) |
Remove string conversion due to runtime api change
Task-number: QT3DS-4177
Change-Id: Ie14ff94f6ebc584f22cc711ccfdc0d8e26657f40
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
-rw-r--r-- | src/Authoring/Client/Code/Core/Doc/DocumentBufferCache.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Authoring/Client/Code/Core/Doc/DocumentBufferCache.cpp b/src/Authoring/Client/Code/Core/Doc/DocumentBufferCache.cpp index 82f8428e..e64a3a6f 100644 --- a/src/Authoring/Client/Code/Core/Doc/DocumentBufferCache.cpp +++ b/src/Authoring/Client/Code/Core/Doc/DocumentBufferCache.cpp @@ -246,10 +246,8 @@ struct SDocBufferCache : public IDocumentBufferCache return entry->second.m_ImageBuffer; CFilePath thePath(m_Doc.GetResolvedPathToDoc(inPath)); SImageTextureData retval; - if (thePath.IsFile() && GetBufferManager()) { - retval = GetBufferManager()->LoadRenderImage( - GetBufferManager()->GetStringTable().RegisterStr(thePath.toCString())); - } + if (thePath.IsFile() && GetBufferManager()) + retval = GetBufferManager()->LoadRenderImage(thePath.toQString()); if (retval.m_Texture) m_Buffers.insert( make_pair(m_StringTablePtr->RegisterStr(inPath.toCString()), SModelBufferOrImage(retval))); |