diff options
author | Chih-Hung Hsieh <chh@google.com> | 2020-03-10 12:58:29 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2020-03-10 12:58:29 -0700 |
commit | 3fb38f7fe25a29084203a455d76f7af426e91549 (patch) | |
tree | d4f0fe77eff42b184b7fb6184bceb61619f15f4d /tools/aapt | |
parent | 365caf6f0460744369fd9394a5642d58e4980d72 (diff) |
Fix bugprone-copy-constructor-init warnings
* normally a copy constructor should call base copy constructor
Bug: 151109313
Test: WITH_TIDY=1 make
Change-Id: I9677889973178c26cd787a457333877619956b51
Diffstat (limited to 'tools/aapt')
-rw-r--r-- | tools/aapt/ConfigDescription.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/aapt/ConfigDescription.h b/tools/aapt/ConfigDescription.h index b4ea624524b3..6e9dc3d9456a 100644 --- a/tools/aapt/ConfigDescription.h +++ b/tools/aapt/ConfigDescription.h @@ -34,8 +34,8 @@ struct ConfigDescription : public android::ResTable_config { size = sizeof(android::ResTable_config); } - ConfigDescription(const ConfigDescription&o) { - *static_cast<android::ResTable_config*>(this) = o; + ConfigDescription(const ConfigDescription&o) + : android::ResTable_config(o) { } ConfigDescription& operator=(const android::ResTable_config& o) { |