rm protected inheritance
authorNicholas Ormrod <njormrod@fb.com>
Mon, 3 Nov 2014 18:06:41 +0000 (10:06 -0800)
committerPavlo Kushnir <pavlo@fb.com>
Sat, 8 Nov 2014 02:31:54 +0000 (18:31 -0800)
Summary:
Remove the protected inheritance from folly.

The code looks like the protected might be appropriate: there are some
derived classes which might want access to the AsyncTimeout.

Test Plan: run unit tests

Reviewed By: davejwatson@fb.com

Subscribers: trunkagent, sdwilsh, njormrod, folly-diffs@

FB internal diff: D1649686

Tasks: 5486739

Signature: t1:1649686:1415035288:18efd2cf9aae8caab66d8303c22cdc26c6b54ae5

folly/io/async/HHWheelTimer.h

index b55d88578b0dc28cfd88d819d55d5b1b1c0540d1..66ad4232afce192dd880252f5fe4aecaff22abaa 100644 (file)
@@ -54,7 +54,7 @@ namespace folly {
  * maintaining time and timers, provided that we can maintain
  * a consistent rate of ticks.
  */
-class HHWheelTimer : protected folly::AsyncTimeout,
+class HHWheelTimer : private folly::AsyncTimeout,
                      public folly::DelayedDestruction {
  public:
   typedef std::unique_ptr<HHWheelTimer, Destructor> UniquePtr;