mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Linux Compile Fix: ../../lib/filesystem/CArchiveLoader.cpp:236:52: error: invalid initialization of non-const reference of type 'std::unique_ptr<CInputStream>&' from an rvalue of type 'std::unique_ptr<CInputStream>'
This commit is contained in:
parent
62e479ae16
commit
221a9e14b9
@ -233,7 +233,7 @@ void CArchiveLoader::extractToFolder( std::string outputSubFolder, CFileInputStr
|
|||||||
void CArchiveLoader::extractToFolder( std::string outputSubFolder, const std::string& mountPoint, ArchiveEntry entry)
|
void CArchiveLoader::extractToFolder( std::string outputSubFolder, const std::string& mountPoint, ArchiveEntry entry)
|
||||||
{
|
{
|
||||||
|
|
||||||
std::unique_ptr<CInputStream> & inputStream = load(ResourceID(mountPoint + entry.name));
|
std::unique_ptr<CInputStream> inputStream = load(ResourceID(mountPoint + entry.name));
|
||||||
|
|
||||||
std::unique_ptr<char[]> data = std::unique_ptr<char[]>(new char[entry.fullSize]);
|
std::unique_ptr<char[]> data = std::unique_ptr<char[]>(new char[entry.fullSize]);
|
||||||
inputStream->read((ui8*)data.get(), entry.fullSize);
|
inputStream->read((ui8*)data.get(), entry.fullSize);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user