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 /libs/androidfw | |
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 'libs/androidfw')
-rw-r--r-- | libs/androidfw/include/androidfw/ConfigDescription.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/androidfw/include/androidfw/ConfigDescription.h b/libs/androidfw/include/androidfw/ConfigDescription.h index 6fa089aeb12c..acf413aeaf91 100644 --- a/libs/androidfw/include/androidfw/ConfigDescription.h +++ b/libs/androidfw/include/androidfw/ConfigDescription.h @@ -151,8 +151,8 @@ inline ConfigDescription::ConfigDescription(const android::ResTable_config& o) { size = sizeof(android::ResTable_config); } -inline ConfigDescription::ConfigDescription(const ConfigDescription& o) { - *static_cast<android::ResTable_config*>(this) = o; +inline ConfigDescription::ConfigDescription(const ConfigDescription& o) + : android::ResTable_config(o) { } inline ConfigDescription::ConfigDescription(ConfigDescription&& o) noexcept { |