Commit 65093e0432c2a97efb19c52092cc48615bac386f

Authored by Baptiste Wicht
1 parent 387e51dc

Cleanup

Showing 1 changed file with 2 additions and 6 deletions
src/cxxopts.hpp
@@ -419,15 +419,11 @@ namespace cxxopts @@ -419,15 +419,11 @@ namespace cxxopts
419 standard_value() 419 standard_value()
420 : m_result(std::make_shared<T>()) 420 : m_result(std::make_shared<T>())
421 , m_store(m_result.get()) 421 , m_store(m_result.get())
422 - , m_default(false), m_default_value("")  
423 - , m_implicit(false), m_implicit_value("")  
424 { 422 {
425 } 423 }
426 424
427 standard_value(T* t) 425 standard_value(T* t)
428 : m_store(t) 426 : m_store(t)
429 - , m_default(false), m_default_value("")  
430 - , m_implicit(false), m_implicit_value("")  
431 { 427 {
432 } 428 }
433 429
@@ -504,9 +500,9 @@ namespace cxxopts @@ -504,9 +500,9 @@ namespace cxxopts
504 protected: 500 protected:
505 std::shared_ptr<T> m_result; 501 std::shared_ptr<T> m_result;
506 T* m_store; 502 T* m_store;
507 - bool m_default; 503 + bool m_default = false;
508 std::string m_default_value; 504 std::string m_default_value;
509 - bool m_implicit; 505 + bool m_implicit = false;
510 std::string m_implicit_value; 506 std::string m_implicit_value;
511 }; 507 };
512 } 508 }