Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame^] | 1 | diff -aur glcompbench-2012.08/src/libmatrix/shader-source.cc Fixed/src/libmatrix/shader-source.cc |
| 2 | --- glcompbench-2012.08/src/libmatrix/shader-source.cc 2012-08-22 13:41:36.000000000 -0500 |
| 3 | +++ Fixed/src/libmatrix/shader-source.cc 2016-08-24 14:23:49.576023317 -0500 |
| 4 | @@ -34,7 +34,7 @@ |
| 5 | bool |
| 6 | ShaderSource::load_file(const std::string& filename, std::string& str) |
| 7 | { |
| 8 | - std::auto_ptr<std::istream> is_ptr(Util::get_resource(filename)); |
| 9 | + std::unique_ptr<std::istream> is_ptr(Util::get_resource(filename)); |
| 10 | std::istream& inputFile(*is_ptr); |
| 11 | |
| 12 | if (!inputFile) |
| 13 | diff -aur glcompbench-2012.08/src/texture.cc Fixed/src/texture.cc |
| 14 | --- glcompbench-2012.08/src/texture.cc 2012-08-22 13:41:36.000000000 -0500 |
| 15 | +++ Fixed/src/texture.cc 2016-08-24 14:23:28.223917438 -0500 |
| 16 | @@ -52,7 +52,7 @@ |
| 17 | |
| 18 | Log::debug("Reading PNG file %s\n", filename.c_str()); |
| 19 | |
| 20 | - const std::auto_ptr<std::istream> is_ptr(Util::get_resource(filename)); |
| 21 | + const std::unique_ptr<std::istream> is_ptr(Util::get_resource(filename)); |
| 22 | if (!(*is_ptr)) { |
| 23 | Log::error("Cannot open file %s!\n", filename.c_str()); |
| 24 | return false; |