From 368266c3bd0f7d95d5e66149a271da243ee7e57e Mon Sep 17 00:00:00 2001 From: Hans Fugal Date: Mon, 30 Jun 2014 13:34:42 -0700 Subject: [PATCH] s/setCallback_/setCallback/ for detail::State Summary: This isn't really an internal-to-this-class method. :-/ Test Plan: builds Reviewed By: hannesr@fb.com Subscribers: jsedgwick, net-systems@, fugalh, exa FB internal diff: D1412008 --- folly/wangle/Future-inl.h | 2 +- folly/wangle/detail/State.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/folly/wangle/Future-inl.h b/folly/wangle/Future-inl.h index 27af013e..c3002f48 100644 --- a/folly/wangle/Future-inl.h +++ b/folly/wangle/Future-inl.h @@ -59,7 +59,7 @@ template template void Future::setCallback_(F&& func) { throwIfInvalid(); - state_->setCallback_(std::move(func)); + state_->setCallback(std::move(func)); state_ = nullptr; } diff --git a/folly/wangle/detail/State.h b/folly/wangle/detail/State.h index b971a188..bf2a3434 100644 --- a/folly/wangle/detail/State.h +++ b/folly/wangle/detail/State.h @@ -47,9 +47,9 @@ class State { } template - void setCallback_(F func) { + void setCallback(F func) { if (callback_) { - throw std::logic_error("setCallback_ called twice"); + throw std::logic_error("setCallback called twice"); } callback_ = std::move(func); -- 2.34.1