aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/def_parser/def_parser_main.cc
diff options
context:
space:
mode:
authorGravatar Yun Peng <pcloudy@google.com>2017-11-15 10:50:14 +0100
committerGravatar Yun Peng <pcloudy@google.com>2017-12-18 10:54:17 +0100
commitf203db0644fd522e43a4b4ddfa410f95aef49ec3 (patch)
tree19fad59dd57ffc558d88699b1f77714ed656ef57 /third_party/def_parser/def_parser_main.cc
parent3d7b730344ede83931f558b4268b4f9558f47e5c (diff)
Windows DefParser: Remove dependency on //src/main/cpp/util:file
Change-Id: Ifc4a00d5bfef974f82c06eebc9553edad7b8145e
Diffstat (limited to 'third_party/def_parser/def_parser_main.cc')
-rw-r--r--third_party/def_parser/def_parser_main.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/third_party/def_parser/def_parser_main.cc b/third_party/def_parser/def_parser_main.cc
index 5268b0ced5..35762d7ca4 100644
--- a/third_party/def_parser/def_parser_main.cc
+++ b/third_party/def_parser/def_parser_main.cc
@@ -5,7 +5,6 @@
#include <iostream>
#include <string>
-#include "src/main/cpp/util/file_platform.h"
#include "third_party/def_parser/def_parser.h"
static const char* ws = " \t\n\r\f\v";
@@ -38,8 +37,7 @@ int main(int argc, char* argv[]) {
return 1;
}
- std::wstring filenameW;
- blaze_util::AsAbsoluteWindowsPath(argv[1], &filenameW);
+ std::wstring filenameW = AsAbsoluteWindowsPath(argv[1]);
FILE* fout = _wfopen(filenameW.c_str(), L"w+");
if (!fout) {
std::cerr << "Could not open output .def file: " << argv[1] << "\n";
@@ -53,7 +51,7 @@ int main(int argc, char* argv[]) {
for (int i = 3; i < argc; i++) {
// If the argument starts with @, then treat it as a parameter file.
if (argv[i][0] == '@') {
- blaze_util::AsAbsoluteWindowsPath(argv[i] + 1, &filenameW);
+ filenameW = AsAbsoluteWindowsPath(argv[i] + 1);
std::ifstream paramfile(filenameW.c_str(), std::ios::in | std::ios::binary);
if (!paramfile) {
std::cerr << "Could not open parameter file: " << argv[i] << "\n";