Skip to content

Commit 64cc65f

Browse files
authored
Merge pull request orca-zhang#18 from m-peko/make-functions-inline
🔧 Fix compilation errors by making functions inline
2 parents bd821ee + c599f0d commit 64cc65f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

influxdb.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ namespace influxdb_cpp {
174174
detail::field_caller& field(const std::string& k, double v, int prec = 2) { return _f_f(',', k, v, prec); }
175175
detail::ts_caller& timestamp(unsigned long long ts) { return _ts(ts); }
176176
};
177-
void inner::url_encode(std::string& out, const std::string& src) {
177+
inline void inner::url_encode(std::string& out, const std::string& src) {
178178
size_t pos = 0, start = 0;
179179
while((pos = src.find_first_not_of("abcdefghijklmnopqrstuvwxyqABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.~", start)) != std::string::npos) {
180180
out.append(src.c_str() + start, pos - start);
@@ -189,7 +189,7 @@ namespace influxdb_cpp {
189189
}
190190
out.append(src.c_str() + start, src.length() - start);
191191
}
192-
int inner::http_request(const char* method, const char* uri,
192+
inline int inner::http_request(const char* method, const char* uri,
193193
const std::string& querystring, const std::string& body, const server_info& si, std::string* resp) {
194194
std::string header;
195195
struct iovec iv[2];

0 commit comments

Comments
 (0)