From e47d92da39fd70e9834bb2587ff0f5fc5f405af8 Mon Sep 17 00:00:00 2001 From: Masahiro Sakamoto Date: Thu, 15 Aug 2019 17:16:16 +0900 Subject: [PATCH] Fix compilation warning --- src/MessageId.cc | 14 ++++++-------- src/ReaderConfig.h | 4 ++-- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/MessageId.cc b/src/MessageId.cc index ee6952c5f0d16a..96c1d5f603b3a1 100644 --- a/src/MessageId.cc +++ b/src/MessageId.cc @@ -27,14 +27,12 @@ Napi::Object MessageId::Init(Napi::Env env, Napi::Object exports) { Napi::HandleScope scope(env); Napi::Function func = DefineClass(env, "MessageId", - { - StaticMethod("earliest", &MessageId::Earliest, napi_static), - StaticMethod("latest", &MessageId::Latest, napi_static), - StaticMethod("finalize", &MessageId::Finalize, napi_static), - InstanceMethod("serialize", &MessageId::Serialize), - StaticMethod("deserialize", &MessageId::Deserialize, napi_static), - InstanceMethod("toString", &MessageId::ToString) - }); + {StaticMethod("earliest", &MessageId::Earliest, napi_static), + StaticMethod("latest", &MessageId::Latest, napi_static), + StaticMethod("finalize", &MessageId::Finalize, napi_static), + InstanceMethod("serialize", &MessageId::Serialize), + StaticMethod("deserialize", &MessageId::Deserialize, napi_static), + InstanceMethod("toString", &MessageId::ToString)}); constructor = Napi::Persistent(func); constructor.SuppressDestruct(); diff --git a/src/ReaderConfig.h b/src/ReaderConfig.h index 198345901b6d85..69fc634d08a8f0 100644 --- a/src/ReaderConfig.h +++ b/src/ReaderConfig.h @@ -34,9 +34,9 @@ class ReaderConfig { std::string GetTopic(); private: - pulsar_reader_configuration_t *cReaderConfig; - pulsar_message_id_t *cStartMessageId; std::string topic; + pulsar_message_id_t *cStartMessageId; + pulsar_reader_configuration_t *cReaderConfig; }; #endif