Merge "Fix/suppress androidfw google-explicit-constructor warnings" am: 392f0052c2
am: 99a3d72b98
Change-Id: Icb12400292dae8ed091f1a55eb2f0a7e50e84667
This commit is contained in:
@@ -51,7 +51,7 @@ class XmlAttributeFinder
|
|||||||
class BagAttributeFinder
|
class BagAttributeFinder
|
||||||
: public BackTrackingAttributeFinder<BagAttributeFinder, const ResolvedBag::Entry*> {
|
: public BackTrackingAttributeFinder<BagAttributeFinder, const ResolvedBag::Entry*> {
|
||||||
public:
|
public:
|
||||||
BagAttributeFinder(const ResolvedBag* bag)
|
explicit BagAttributeFinder(const ResolvedBag* bag)
|
||||||
: BackTrackingAttributeFinder(bag != nullptr ? bag->entries : nullptr,
|
: BackTrackingAttributeFinder(bag != nullptr ? bag->entries : nullptr,
|
||||||
bag != nullptr ? bag->entries + bag->entry_count : nullptr) {
|
bag != nullptr ? bag->entries + bag->entry_count : nullptr) {
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using namespace android;
|
|||||||
// TODO: This can go away once the only remaining usage in aapt goes away.
|
// TODO: This can go away once the only remaining usage in aapt goes away.
|
||||||
class FileReader : public zip_archive::Reader {
|
class FileReader : public zip_archive::Reader {
|
||||||
public:
|
public:
|
||||||
FileReader(FILE* fp) : Reader(), mFp(fp), mCurrentOffset(0) {
|
explicit FileReader(FILE* fp) : Reader(), mFp(fp), mCurrentOffset(0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ReadAtOffset(uint8_t* buf, size_t len, uint32_t offset) const {
|
bool ReadAtOffset(uint8_t* buf, size_t len, uint32_t offset) const {
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ private:
|
|||||||
class FileInfo {
|
class FileInfo {
|
||||||
public:
|
public:
|
||||||
FileInfo(void) {}
|
FileInfo(void) {}
|
||||||
FileInfo(const String8& path) // useful for e.g. svect.indexOf
|
explicit FileInfo(const String8& path) // useful for e.g. svect.indexOf
|
||||||
: mFileName(path), mFileType(kFileTypeUnknown)
|
: mFileName(path), mFileType(kFileTypeUnknown)
|
||||||
{}
|
{}
|
||||||
~FileInfo(void) {}
|
~FileInfo(void) {}
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ struct FileRec {
|
|||||||
class BackupDataWriter
|
class BackupDataWriter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
BackupDataWriter(int fd);
|
explicit BackupDataWriter(int fd);
|
||||||
// does not close fd
|
// does not close fd
|
||||||
~BackupDataWriter();
|
~BackupDataWriter();
|
||||||
|
|
||||||
@@ -104,7 +104,7 @@ private:
|
|||||||
class BackupDataReader
|
class BackupDataReader
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
BackupDataReader(int fd);
|
explicit BackupDataReader(int fd);
|
||||||
// does not close fd
|
// does not close fd
|
||||||
~BackupDataReader();
|
~BackupDataReader();
|
||||||
|
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ struct ConfigDescription : public ResTable_config {
|
|||||||
static void ApplyVersionForCompatibility(ConfigDescription* config);
|
static void ApplyVersionForCompatibility(ConfigDescription* config);
|
||||||
|
|
||||||
ConfigDescription();
|
ConfigDescription();
|
||||||
ConfigDescription(const android::ResTable_config& o); // NOLINT(implicit)
|
ConfigDescription(const android::ResTable_config& o); // NOLINT(google-explicit-constructor)
|
||||||
ConfigDescription(const ConfigDescription& o);
|
ConfigDescription(const ConfigDescription& o);
|
||||||
ConfigDescription(ConfigDescription&& o) noexcept;
|
ConfigDescription(ConfigDescription&& o) noexcept;
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace android {
|
|||||||
|
|
||||||
class DisplayEventDispatcher : public LooperCallback {
|
class DisplayEventDispatcher : public LooperCallback {
|
||||||
public:
|
public:
|
||||||
DisplayEventDispatcher(const sp<Looper>& looper,
|
explicit DisplayEventDispatcher(const sp<Looper>& looper,
|
||||||
ISurfaceComposer::VsyncSource vsyncSource = ISurfaceComposer::eVsyncSourceApp);
|
ISurfaceComposer::VsyncSource vsyncSource = ISurfaceComposer::eVsyncSourceApp);
|
||||||
|
|
||||||
status_t initialize();
|
status_t initialize();
|
||||||
|
|||||||
@@ -691,7 +691,7 @@ class ResXMLTree;
|
|||||||
class ResXMLParser
|
class ResXMLParser
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ResXMLParser(const ResXMLTree& tree);
|
explicit ResXMLParser(const ResXMLTree& tree);
|
||||||
|
|
||||||
enum event_code_t {
|
enum event_code_t {
|
||||||
BAD_DOCUMENT = -1,
|
BAD_DOCUMENT = -1,
|
||||||
@@ -804,7 +804,7 @@ public:
|
|||||||
* The tree stores a clone of the specified DynamicRefTable, so any changes to the original
|
* The tree stores a clone of the specified DynamicRefTable, so any changes to the original
|
||||||
* DynamicRefTable will not affect this tree after instantiation.
|
* DynamicRefTable will not affect this tree after instantiation.
|
||||||
**/
|
**/
|
||||||
ResXMLTree(const DynamicRefTable* dynamicRefTable);
|
explicit ResXMLTree(const DynamicRefTable* dynamicRefTable);
|
||||||
ResXMLTree();
|
ResXMLTree();
|
||||||
~ResXMLTree();
|
~ResXMLTree();
|
||||||
|
|
||||||
@@ -1803,7 +1803,7 @@ public:
|
|||||||
|
|
||||||
class Theme {
|
class Theme {
|
||||||
public:
|
public:
|
||||||
Theme(const ResTable& table);
|
explicit Theme(const ResTable& table);
|
||||||
~Theme();
|
~Theme();
|
||||||
|
|
||||||
inline const ResTable& getResTable() const { return mTable; }
|
inline const ResTable& getResTable() const { return mTable; }
|
||||||
|
|||||||
@@ -44,8 +44,8 @@ class BasicStringPiece {
|
|||||||
|
|
||||||
BasicStringPiece();
|
BasicStringPiece();
|
||||||
BasicStringPiece(const BasicStringPiece<TChar>& str);
|
BasicStringPiece(const BasicStringPiece<TChar>& str);
|
||||||
BasicStringPiece(const std::basic_string<TChar>& str); // NOLINT(implicit)
|
BasicStringPiece(const std::basic_string<TChar>& str); // NOLINT(google-explicit-constructor)
|
||||||
BasicStringPiece(const TChar* str); // NOLINT(implicit)
|
BasicStringPiece(const TChar* str); // NOLINT(google-explicit-constructor)
|
||||||
BasicStringPiece(const TChar* str, size_t len);
|
BasicStringPiece(const TChar* str, size_t len);
|
||||||
|
|
||||||
BasicStringPiece<TChar>& operator=(const BasicStringPiece<TChar>& rhs);
|
BasicStringPiece<TChar>& operator=(const BasicStringPiece<TChar>& rhs);
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
namespace android {
|
namespace android {
|
||||||
|
|
||||||
struct TypeVariant {
|
struct TypeVariant {
|
||||||
TypeVariant(const ResTable_type* data);
|
explicit TypeVariant(const ResTable_type* data);
|
||||||
|
|
||||||
class iterator {
|
class iterator {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ class unique_cptr {
|
|||||||
using pointer = typename std::add_pointer<T>::type;
|
using pointer = typename std::add_pointer<T>::type;
|
||||||
|
|
||||||
constexpr unique_cptr() : ptr_(nullptr) {}
|
constexpr unique_cptr() : ptr_(nullptr) {}
|
||||||
constexpr unique_cptr(std::nullptr_t) : ptr_(nullptr) {}
|
constexpr explicit unique_cptr(std::nullptr_t) : ptr_(nullptr) {}
|
||||||
explicit unique_cptr(pointer ptr) : ptr_(ptr) {}
|
explicit unique_cptr(pointer ptr) : ptr_(ptr) {}
|
||||||
unique_cptr(unique_cptr&& o) noexcept : ptr_(o.ptr_) { o.ptr_ = nullptr; }
|
unique_cptr(unique_cptr&& o) noexcept : ptr_(o.ptr_) { o.ptr_ = nullptr; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user