Allows copy and assignment of field trial parameters.

Bug: webrtc:9346
Change-Id: I7734fbe60f95e554a636946cadc1940a78419951
Reviewed-on: https://webrtc-review.googlesource.com/c/104020
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Sebastian Jansson <srte@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25031}
This commit is contained in:
Sebastian Jansson 2018-10-05 19:44:46 +02:00 committed by Commit Bot
parent e53341c1dc
commit 343f4144be

View File

@ -37,6 +37,10 @@ class FieldTrialParameterInterface {
virtual ~FieldTrialParameterInterface();
protected:
// Protected to allow implementations to provide assignment and copy.
FieldTrialParameterInterface(const FieldTrialParameterInterface&) = default;
FieldTrialParameterInterface& operator=(const FieldTrialParameterInterface&) =
default;
explicit FieldTrialParameterInterface(std::string key);
friend void ParseFieldTrial(
std::initializer_list<FieldTrialParameterInterface*> fields,
@ -46,7 +50,7 @@ class FieldTrialParameterInterface {
std::string Key() const;
private:
const std::string key_;
std::string key_;
bool used_ = false;
};