OSDN Git Service

Fix google-explicit-constructor warnings.
authorChih-Hung Hsieh <chh@google.com>
Mon, 15 Aug 2016 21:45:02 +0000 (14:45 -0700)
committerChih-Hung Hsieh <chh@google.com>
Mon, 15 Aug 2016 21:45:02 +0000 (14:45 -0700)
* Add explicit keyword to conversion constructors.
Bug: 28341362
Test: build with WITH_TIDY=1

Change-Id: I7422d703de17c4266d2a022990d0e1df40f48226

tools/split-select/SplitSelector.h

index 193fda7..120354f 100644 (file)
@@ -29,7 +29,7 @@ namespace split {
 class SplitSelector {
 public:
     SplitSelector();
-    SplitSelector(const android::Vector<SplitDescription>& splits);
+    explicit SplitSelector(const android::Vector<SplitDescription>& splits);
 
     android::Vector<SplitDescription> getBestSplits(const SplitDescription& target) const;