[llvm] r358978 - Removing the explicit specifier from some default constructors; NFC.

Aaron Ballman via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 23 05:16:28 PDT 2019


Author: aaronballman
Date: Tue Apr 23 05:16:28 2019
New Revision: 358978

URL: http://llvm.org/viewvc/llvm-project?rev=358978&view=rev
Log:
Removing the explicit specifier from some default constructors; NFC.

Modified:
    llvm/trunk/include/llvm/Support/JSON.h

Modified: llvm/trunk/include/llvm/Support/JSON.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/JSON.h?rev=358978&r1=358977&r2=358978&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/JSON.h (original)
+++ llvm/trunk/include/llvm/Support/JSON.h Tue Apr 23 05:16:28 2019
@@ -95,7 +95,7 @@ public:
   using iterator = Storage::iterator;
   using const_iterator = Storage::const_iterator;
 
-  explicit Object() = default;
+  Object() = default;
   // KV is a trivial key-value struct for list-initialization.
   // (using std::pair forces extra copies).
   struct KV;
@@ -156,7 +156,7 @@ public:
   using iterator = std::vector<Value>::iterator;
   using const_iterator = std::vector<Value>::const_iterator;
 
-  explicit Array() = default;
+  Array() = default;
   explicit Array(std::initializer_list<Value> Elements);
   template <typename Collection> explicit Array(const Collection &C) {
     for (const auto &V : C)




More information about the llvm-commits mailing list