From 28f3df687ab4b1cbe61231c83b1af6a4b5271419 Mon Sep 17 00:00:00 2001 From: Seki Inoue Date: Wed, 2 Mar 2022 12:17:03 +0900 Subject: [PATCH] backward compatibility --- src/influxdb-cpp-rest/influxdb_raw_db.h | 2 +- src/influxdb-cpp-rest/influxdb_raw_db_utf8.h | 2 +- src/influxdb-cpp-rest/influxdb_simple_api.h | 2 +- src/influxdb-cpp-rest/influxdb_simple_async_api.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/influxdb-cpp-rest/influxdb_raw_db.h b/src/influxdb-cpp-rest/influxdb_raw_db.h index 608b80e..28bd76d 100644 --- a/src/influxdb-cpp-rest/influxdb_raw_db.h +++ b/src/influxdb-cpp-rest/influxdb_raw_db.h @@ -25,7 +25,7 @@ namespace influxdb { bool deflate; public: - db(string_t const& url, string_t const& name, bool deflate); + db(string_t const& url, string_t const& name, bool deflate = false); /// post queries void post(string_t const& query); diff --git a/src/influxdb-cpp-rest/influxdb_raw_db_utf8.h b/src/influxdb-cpp-rest/influxdb_raw_db_utf8.h index 90fd06a..9e6f974 100644 --- a/src/influxdb-cpp-rest/influxdb_raw_db_utf8.h +++ b/src/influxdb-cpp-rest/influxdb_raw_db_utf8.h @@ -16,7 +16,7 @@ namespace influxdb { std::unique_ptr pimpl; public: - db_utf8(std::string const& url, std::string const& name, bool deflate); + db_utf8(std::string const& url, std::string const& name, bool deflate = false); ~db_utf8(); /// post queries diff --git a/src/influxdb-cpp-rest/influxdb_simple_api.h b/src/influxdb-cpp-rest/influxdb_simple_api.h index a381e79..0bbc2f3 100644 --- a/src/influxdb-cpp-rest/influxdb_simple_api.h +++ b/src/influxdb-cpp-rest/influxdb_simple_api.h @@ -19,7 +19,7 @@ namespace influxdb { std::unique_ptr pimpl; public: - simple_db(std::string const& url, std::string const& name, bool deflate); + simple_db(std::string const& url, std::string const& name, bool deflate = false); ~simple_db(); public: diff --git a/src/influxdb-cpp-rest/influxdb_simple_async_api.h b/src/influxdb-cpp-rest/influxdb_simple_async_api.h index 7f20885..d87d2a5 100644 --- a/src/influxdb-cpp-rest/influxdb_simple_async_api.h +++ b/src/influxdb-cpp-rest/influxdb_simple_async_api.h @@ -21,7 +21,7 @@ namespace influxdb { public: simple_db(std::string const& url, std::string const& name); - simple_db(std::string const& url, std::string const& name, unsigned window_max_lines, unsigned window_max_ms, bool deflate); + simple_db(std::string const& url, std::string const& name, unsigned window_max_lines, unsigned window_max_ms, bool deflate = false); virtual ~simple_db(); public: