lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 409cd90 2/2: Write "default-constructed vecto


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 409cd90 2/2: Write "default-constructed vector" with one character less
Date: Thu, 26 Jan 2017 22:38:26 +0000 (UTC)

branch: master
commit 409cd90a29bd457628b70b43174031d261e5b140
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Write "default-constructed vector" with one character less
---
 input_seq_test.cpp |    2 +-
 input_sequence.hpp |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/input_seq_test.cpp b/input_seq_test.cpp
index 80cfc50..7b3167d 100644
--- a/input_seq_test.cpp
+++ b/input_seq_test.cpp
@@ -34,7 +34,7 @@ void check
     ,double const*                   d
     ,int                             n
     ,std::string const&              e
-    ,std::vector<std::string> const& k = std::vector<std::string>(0)
+    ,std::vector<std::string> const& k = std::vector<std::string>()
     ,char const* const*              c = nullptr
     ,std::string const&              w = std::string()
     )
diff --git a/input_sequence.hpp b/input_sequence.hpp
index a8e8321..f8078bc 100644
--- a/input_sequence.hpp
+++ b/input_sequence.hpp
@@ -249,7 +249,7 @@ class LMI_SO InputSequence
         ,int a_effective_year
         ,int a_index_origin
         ,std::vector<std::string> const& a_extra_keywords
-            = std::vector<std::string>(0)
+            = std::vector<std::string>()
         ,std::string const& a_default_keyword = ""
         ,bool a_keywords_only = false
         );



reply via email to

[Prev in Thread] Current Thread [Next in Thread]