Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Unified Diff: webrtc/common.h

Issue 2291503002: Fix Chromium clang plugin warnings (Closed)
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/BUILD.gn ('k') | webrtc/common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common.h
diff --git a/webrtc/common.h b/webrtc/common.h
index 8795064fd07e3ebb0e63e0a51cdb2ee8e7b1cc6b..79db50c5b5ad9f9be7bf1809e5e647f8913bab0d 100644
--- a/webrtc/common.h
+++ b/webrtc/common.h
@@ -71,15 +71,8 @@ class Config {
// This instance gets ownership of the newly set value.
template<typename T> void Set(T* value);
- Config() {}
- ~Config() {
- // Note: this method is inline so webrtc public API depends only
- // on the headers.
- for (OptionMap::iterator it = options_.begin();
- it != options_.end(); ++it) {
- delete it->second;
- }
- }
+ Config();
+ ~Config();
private:
struct BaseOption {
« no previous file with comments | « webrtc/BUILD.gn ('k') | webrtc/common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698