Merge "Fix/suppress startop google-explicit-constructor warnings" am: 667dba5c14

am: b3bc82c7f5

Change-Id: I0efecc008ff21584fbec19fd68b2a94368821b4f
This commit is contained in:
Chih-Hung Hsieh
2018-12-20 22:14:59 -08:00
committed by android-build-merger
2 changed files with 3 additions and 3 deletions

View File

@@ -73,7 +73,7 @@ class TypeDescriptor {
bool operator<(const TypeDescriptor& rhs) const { return descriptor_ < rhs.descriptor_; }
private:
TypeDescriptor(std::string descriptor) : descriptor_{descriptor} {}
explicit TypeDescriptor(std::string descriptor) : descriptor_{descriptor} {}
const std::string descriptor_;
};
@@ -83,7 +83,7 @@ class TypeDescriptor {
class Prototype {
public:
template <typename... TypeDescriptors>
Prototype(TypeDescriptor return_type, TypeDescriptors... param_types)
explicit Prototype(TypeDescriptor return_type, TypeDescriptors... param_types)
: return_type_{return_type}, param_types_{param_types...} {}
// Encode this prototype into the dex file.

View File

@@ -42,7 +42,7 @@ DEFINE_string(package, "", "The package name for the generated class (required)"
class ViewCompilerXmlVisitor : public XMLVisitor {
public:
ViewCompilerXmlVisitor(JavaLangViewBuilder* builder) : builder_(builder) {}
explicit ViewCompilerXmlVisitor(JavaLangViewBuilder* builder) : builder_(builder) {}
bool VisitEnter(const XMLDocument& /*doc*/) override {
builder_->Start();