diff options
Diffstat (limited to 'extern/libmv/third_party/ceres/internal/ceres/file.cc')
-rw-r--r-- | extern/libmv/third_party/ceres/internal/ceres/file.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/extern/libmv/third_party/ceres/internal/ceres/file.cc b/extern/libmv/third_party/ceres/internal/ceres/file.cc index 5fc9d220861..6fe7557246d 100644 --- a/extern/libmv/third_party/ceres/internal/ceres/file.cc +++ b/extern/libmv/third_party/ceres/internal/ceres/file.cc @@ -31,7 +31,8 @@ // Really simple file IO. #include <cstdio> -#include <glog/logging.h> +#include "file.h" +#include "glog/logging.h" namespace ceres { namespace internal { @@ -48,7 +49,7 @@ void WriteStringToFileOrDie(const string &data, const string &filename) { } void ReadFileToStringOrDie(const string &filename, string *data) { - FILE* file_descriptor = file_descriptor = fopen(filename.c_str(), "r"); + FILE* file_descriptor = fopen(filename.c_str(), "r"); if (!file_descriptor) { LOG(FATAL) << "Couldn't read file: " << filename; |