Skip to content

Commit

Permalink
use array initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
Atsushi Takayama committed May 23, 2010
1 parent bc472c7 commit cdcdc24
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/tokyocabinet.cc
Expand Up @@ -186,17 +186,14 @@ class AsyncDataCore {
inline void
callCallback (Handle<Value> arg0) {
HandleScope scope;
Handle<Value> args[1];
args[0] = arg0;
Handle<Value> args[1] = {arg0};
callback(1, args);
}

inline void
callCallback (Handle<Value> arg0, Handle<Value>arg1) {
HandleScope scope;
Handle<Value> args[2];
args[0] = arg0;
args[1] = arg1;
Handle<Value> args[2] = {arg0, arg1};
callback(2, args);
}
};
Expand Down

0 comments on commit cdcdc24

Please sign in to comment.