summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2022-07-19 18:34:26 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2022-07-19 18:34:26 -0400
commit907c6b42d7b8203b8a731adccb2cea1eee15729e (patch)
tree0e4955111296c60e3f8a02180dd227b93261dd1f
parent1dfbda6ba2992e65f9f3c77033f708acc5821168 (diff)
downloadorcus-staging/mr130.tar.gz
Fix build issue with MSVC staging/mr130bugfix/msvc-build-fix
-rw-r--r--src/spreadsheet/debug_state_dumper.cpp8
-rw-r--r--src/spreadsheet/debug_state_dumper.hpp5
-rw-r--r--src/spreadsheet/document.cpp6
3 files changed, 10 insertions, 9 deletions
diff --git a/src/spreadsheet/debug_state_dumper.cpp b/src/spreadsheet/debug_state_dumper.cpp
index 692cc959..1ff42df2 100644
--- a/src/spreadsheet/debug_state_dumper.cpp
+++ b/src/spreadsheet/debug_state_dumper.cpp
@@ -28,7 +28,7 @@ void doc_debug_state_dumper::dump(const fs::path& outdir) const
void doc_debug_state_dumper::dump_properties(const fs::path& outdir) const
{
const fs::path outpath = outdir / "properties.yaml";
- std::ofstream of{outpath};
+ std::ofstream of{outpath.native()};
if (!of)
return;
@@ -40,7 +40,7 @@ void doc_debug_state_dumper::dump_properties(const fs::path& outdir) const
void doc_debug_state_dumper::dump_styles(const fs::path& outdir) const
{
const fs::path outpath = outdir / "styles.yaml";
- std::ofstream of{outpath};
+ std::ofstream of{outpath.native()};
if (!of)
return;
@@ -247,7 +247,7 @@ void sheet_debug_state_dumper::dump_cell_values(const fs::path& outdir) const
{
check_dumper dumper{m_sheet, m_sheet_name};
fs::path outpath = outdir / "cell-values.txt";
- std::ofstream of{outpath};
+ std::ofstream of{outpath.native()};
if (of)
dumper.dump(of);
}
@@ -255,7 +255,7 @@ void sheet_debug_state_dumper::dump_cell_values(const fs::path& outdir) const
void sheet_debug_state_dumper::dump_cell_formats(const fs::path& outdir) const
{
fs::path outpath = outdir / "cell-formats.yaml";
- std::ofstream of{outpath};
+ std::ofstream of{outpath.native()};
if (!of)
return;
diff --git a/src/spreadsheet/debug_state_dumper.hpp b/src/spreadsheet/debug_state_dumper.hpp
index afd5ba20..d7f46088 100644
--- a/src/spreadsheet/debug_state_dumper.hpp
+++ b/src/spreadsheet/debug_state_dumper.hpp
@@ -8,6 +8,7 @@
#pragma once
#include <boost/filesystem.hpp>
+#include <string_view>
namespace orcus { namespace spreadsheet {
@@ -15,8 +16,8 @@ class document;
namespace detail {
-class document_impl;
-class sheet_impl;
+struct document_impl;
+struct sheet_impl;
class doc_debug_state_dumper
{
diff --git a/src/spreadsheet/document.cpp b/src/spreadsheet/document.cpp
index bb679261..04ff1af8 100644
--- a/src/spreadsheet/document.cpp
+++ b/src/spreadsheet/document.cpp
@@ -264,7 +264,7 @@ void document::dump_flat(const string& outdir) const
outpath /= std::string{sheet->name};
outpath.replace_extension(".txt");
- ofstream file(outpath);
+ std::ofstream file(outpath.native());
if (!file)
{
cerr << "failed to create file: " << outpath << endl;
@@ -291,7 +291,7 @@ void document::dump_html(const string& outdir) const
outpath /= std::string{sheet->name};
outpath.replace_extension(".html");
- ofstream file(outpath);
+ std::ofstream file(outpath.native());
if (!file)
{
cerr << "failed to create file: " << outpath << endl;
@@ -310,7 +310,7 @@ void document::dump_json(const string& outdir) const
outpath /= std::string{sheet->name};
outpath.replace_extension(".json");
- ofstream file(outpath);
+ std::ofstream file(outpath.native());
if (!file)
{
cerr << "failed to create file: " << outpath << endl;