Skip to content

Commit

Permalink
Sanity: clang-format and regen projects
Browse files Browse the repository at this point in the history
  • Loading branch information
vjpai committed Feb 11, 2016
1 parent 8ae883f commit c41abec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions src/cpp/common/alarm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,22 @@
namespace grpc {

class AlarmEntry : public CompletionQueueTag {
public:
AlarmEntry(void *tag): tag_(tag) {}
public:
AlarmEntry(void* tag) : tag_(tag) {}
bool FinalizeResult(void** tag, bool* status) GRPC_OVERRIDE {
*tag = tag_;
delete this;
return true;
}
private:

private:
void* tag_;
};

static internal::GrpcLibraryInitializer g_gli_initializer;
Alarm::Alarm(CompletionQueue* cq, gpr_timespec deadline, void* tag)
: alarm_(grpc_alarm_create(cq->cq(), deadline,
static_cast<void*>(new AlarmEntry(tag)))) {
: alarm_(grpc_alarm_create(cq->cq(), deadline,
static_cast<void*>(new AlarmEntry(tag)))) {
g_gli_initializer.summon();
}

Expand Down
4 changes: 2 additions & 2 deletions tools/run_tests/sources_and_headers.json
Original file line number Diff line number Diff line change
Expand Up @@ -1313,8 +1313,6 @@
},
{
"deps": [
"gpr",
"gpr_test_util",
"grpc",
"grpc++",
"grpc++_test_util",
Expand All @@ -1329,6 +1327,8 @@
},
{
"deps": [
"gpr",
"gpr_test_util",
"grpc",
"grpc++",
"grpc++_test_util",
Expand Down

0 comments on commit c41abec

Please sign in to comment.