mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-08-14 06:05:52 +08:00
Revert unnecessary compatibility change in StdioFileReader.
This commit is contained in:
parent
b7fb7e5fba
commit
27a329e939
@ -11,7 +11,6 @@
|
|||||||
#include <io.h>
|
#include <io.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "draco/draco_features.h"
|
|
||||||
#include "draco/io/file_reader_factory.h"
|
#include "draco/io/file_reader_factory.h"
|
||||||
|
|
||||||
namespace draco {
|
namespace draco {
|
||||||
@ -47,11 +46,7 @@ std::unique_ptr<FileReaderInterface> StdioFileReader::Open(
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef DRACO_OLD_GCC
|
|
||||||
return file;
|
return file;
|
||||||
#else
|
|
||||||
return std::move(file);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool StdioFileReader::ReadFileToBuffer(std::vector<char> *buffer) {
|
bool StdioFileReader::ReadFileToBuffer(std::vector<char> *buffer) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user