diff --git a/webrtc/p2p/base/transport.h b/webrtc/p2p/base/transport.h index cfbd2ec68..abead7fac 100644 --- a/webrtc/p2p/base/transport.h +++ b/webrtc/p2p/base/transport.h @@ -413,11 +413,11 @@ class Transport : public rtc::MessageHandler, // Sends SignalCompleted if we are now in that state. void MaybeCompleted_w(); - rtc::Thread* signaling_thread_; - rtc::Thread* worker_thread_; - std::string content_name_; - std::string type_; - PortAllocator* allocator_; + rtc::Thread* const signaling_thread_; + rtc::Thread* const worker_thread_; + const std::string content_name_; + const std::string type_; + PortAllocator* const allocator_; bool destroyed_; TransportState readable_; TransportState writable_; diff --git a/webrtc/video_engine/overuse_frame_detector.h b/webrtc/video_engine/overuse_frame_detector.h index d96adb197..2c1cd1395 100644 --- a/webrtc/video_engine/overuse_frame_detector.h +++ b/webrtc/video_engine/overuse_frame_detector.h @@ -126,7 +126,7 @@ class OveruseFrameDetector : public Module { CpuOveruseOptions options_ GUARDED_BY(crit_); - Clock* clock_; + Clock* const clock_; int64_t next_process_time_; int64_t num_process_times_ GUARDED_BY(crit_);