Skip to content

Commit faf756f

Browse files
committed
Cppcheck
1 parent d2f6c6e commit faf756f

File tree

2 files changed

+18
-20
lines changed

2 files changed

+18
-20
lines changed

examples/yaml/custom_span_processor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
class CustomSpanProcessor : public opentelemetry::sdk::trace::SpanProcessor
1515
{
1616
public:
17-
CustomSpanProcessor(std::string comment) : m_comment(comment) {}
17+
CustomSpanProcessor(const std::string &comment) : m_comment(comment) {}
1818
~CustomSpanProcessor() override = default;
1919

2020
std::unique_ptr<opentelemetry::sdk::trace::Recordable> MakeRecordable() noexcept override;

exporters/otlp/src/otlp_http_exporter_options.cc

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -40,32 +40,30 @@ OtlpHttpExporterOptions::OtlpHttpExporterOptions()
4040
}
4141

4242
OtlpHttpExporterOptions::OtlpHttpExporterOptions(void *)
43-
: json_bytes_mapping(JsonBytesMappingKind::kHexId),
43+
: url(),
44+
content_type(HttpRequestContentType::kBinary),
45+
json_bytes_mapping(JsonBytesMappingKind::kHexId),
4446
use_json_name(false),
4547
console_debug(false),
46-
ssl_insecure_skip_verify(false)
48+
timeout(0),
49+
http_headers(),
50+
ssl_insecure_skip_verify(false),
51+
ssl_ca_cert_path(),
52+
ssl_ca_cert_string(),
53+
ssl_client_key_path(),
54+
ssl_client_key_string(),
55+
ssl_client_cert_path(),
56+
ssl_client_cert_string(),
57+
ssl_min_tls(),
58+
ssl_max_tls(),
59+
ssl_cipher(),
60+
ssl_cipher_suite(),
61+
compression()
4762
{
48-
url = "";
49-
content_type = HttpRequestContentType::kBinary;
50-
5163
#ifdef ENABLE_ASYNC_EXPORT
5264
max_concurrent_requests = 64;
5365
max_requests_per_connection = 8;
5466
#endif /* ENABLE_ASYNC_EXPORT */
55-
56-
ssl_ca_cert_path = "";
57-
ssl_ca_cert_string = "";
58-
ssl_client_key_path = "";
59-
ssl_client_key_string = "";
60-
ssl_client_cert_path = "";
61-
ssl_client_cert_string = "";
62-
63-
ssl_min_tls = "";
64-
ssl_max_tls = "";
65-
ssl_cipher = "";
66-
ssl_cipher_suite = "";
67-
68-
compression = "";
6967
}
7068

7169
OtlpHttpExporterOptions::~OtlpHttpExporterOptions() {}

0 commit comments

Comments
 (0)